﻿/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #F6F5F1;
    color: #1A232E;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; position: relative; }

/* ===== Screens ===== */
.screen { display: none; padding: 0; }
.screen.active { display: block; }

/* ===== Welcome ===== */
#screen-welcome.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.welcome-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #1A3A4A 0%, #2D5A6E 40%, #5A8F9E 100%);
}
.welcome-content {
    position: relative; z-index: 1;
    text-align: center; padding: 48px 32px;
    max-width: 480px;
}
.welcome-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    background: rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #A8D5D9;
}
.welcome-content h1 {
    font-size: 32px; font-weight: 700; color: #fff;
    letter-spacing: 1px; margin-bottom: 12px;
}
.welcome-subtitle {
    font-size: 16px; color: rgba(255,255,255,0.75);
    margin-bottom: 36px; line-height: 1.7;
}
.welcome-features {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 40px; align-items: center;
}
.feature-item {
    color: rgba(255,255,255,0.85); font-size: 15px;
    display: flex; align-items: center; gap: 10px;
}
.feature-item span { font-weight: 500; }
.welcome-note {
    margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: #E8B86D; color: #1A232E;
}
.btn-primary:hover { background: #D4A55C; transform: translateY(-1px); }
.btn-large { padding: 16px 40px; font-size: 17px; }
.btn-secondary {
    background: #E8ECF0; color: #1A232E;
}
.btn-secondary:hover { background: #D6DCE3; }
.btn-icon {
    background: none; border: none; cursor: pointer;
    color: #6B7A8A; padding: 8px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.btn-icon:hover { background: rgba(0,0,0,0.06); }

/* ===== Questionnaire Header ===== */
.q-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: #fff;
    position: sticky; top: 0; z-index: 10;
    border-bottom: 1px solid #EDEDE8;
}
.progress-wrapper {
    flex: 1; display: flex; align-items: center; gap: 12px;
}
.progress-bar {
    flex: 1; height: 6px; background: #EDEDE8; border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%; background: #2D5A6E;
    border-radius: 3px; transition: width 0.5s ease;
}
.progress-text {
    font-size: 13px; color: #6B7A8A; font-weight: 500; min-width: 36px;
    text-align: right;
}

/* ===== Question ===== */
.question-container {
    padding: 40px 24px 24px;
    max-width: 600px; margin: 0 auto;
}
.question-card {
    animation: fadeSlideIn 0.35s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-dimension {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: #7EB8C7; margin-bottom: 8px;
}
.question-text {
    font-size: 18px; font-weight: 600; line-height: 1.6;
    margin-bottom: 4px;
}
.question-subtext {
    font-size: 12px; color: #9AA8B5; line-height: 1.5;
    margin-bottom: 16px; font-style: italic;
}
.question-options {
    margin-bottom: 28px; color: #1A232E;
}
.question-options {
    display: flex; flex-direction: column; gap: 10px;
}
.option-btn {
    display: block; width: 100%; text-align: left;
    padding: 16px 20px; border: 2px solid #E8ECF0;
    border-radius: 12px; background: #fff;
    font-size: 15px; font-family: inherit; cursor: pointer;
    transition: all 0.2s; color: #1A232E; line-height: 1.5;
}
.option-btn:hover {
    border-color: #A8C5D0; background: #F8FAFB;
}
.option-btn.selected {
    border-color: #2D5A6E; background: #EEF4F6;
}

/* ===== Results ===== */
.results-container {
    max-width: 640px; margin: 0 auto; padding: 0 20px 60px;
}
.results-header { padding: 32px 0 16px; }
.result-badge {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.result-icon {
    width: 48px; height: 48px; background: #2D5A6E;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: #A8D5D9;
}
.result-badge h2 { font-size: 22px; font-weight: 700; }
.result-score-card {
    background: #fff; border-radius: 16px; padding: 28px;
    text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.score-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 16px; }
.score-ring svg { display: block; width: 100%; height: 100%; }
.score-number {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number span:first-child {
    font-size: 34px; font-weight: 700; color: #1A232E; line-height: 1;
}
.score-unit { font-size: 14px; color: #6B7A8A; margin-top: 2px; }
.result-level {
    font-size: 20px; font-weight: 700; color: #2D5A6E; margin-bottom: 8px;
}
.result-desc {
    font-size: 14px; color: #6B7A8A; line-height: 1.7;
    max-width: 400px; margin: 0 auto;
}
.results-section {
    margin-top: 28px; background: #fff; border-radius: 16px;
    padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: #1A232E; margin-bottom: 20px;
}
.section-title svg { color: #2D5A6E; width: 18px; height: 18px; }
.radar-wrapper {
    max-width: 360px; margin: 0 auto 20px;
}
.dimension-breakdown {
    display: flex; flex-direction: column; gap: 8px;
}
.dimension-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; font-size: 14px;
}
.dimension-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.dimension-name { flex: 1; color: #1A232E; font-weight: 500; }
.dimension-bar-wrapper {
    flex: 1; background: #EDEDE8; border-radius: 4px; height: 8px; overflow: hidden;
}
.dimension-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.dimension-score { font-size: 13px; color: #6B7A8A; min-width: 40px; text-align: right; font-weight: 600; }

/* ===== Recommendations ===== */
.recommendation-content { }
.rec-card {
    padding: 16px 0; border-bottom: 1px solid #EDEDE8;
}
.rec-card:last-child { border-bottom: none; }
.rec-title {
    font-size: 15px; font-weight: 700; color: #2D5A6E; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.rec-body {
    font-size: 14px; color: #3A4A58; line-height: 1.8;
}
.rec-bullet {
    padding-left: 20px; position: relative; margin-bottom: 4px;
}
.rec-bullet::before {
    content: ""; position: absolute; left: 4px; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: #7EB8C7;
}

.results-actions {
    margin-top: 24px; text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .welcome-features { display: none !important; }
    .welcome-content h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .welcome-icon { width: 48px !important; height: 48px !important; margin-bottom: 12px !important; }
    .welcome-icon svg { width: 28px !important; height: 28px !important; }
    .welcome-content h1 { font-size: 22px !important; }
    .welcome-content { padding: 20px 12px !important; }
    .welcome-subtitle { font-size: 14px !important; margin-bottom: 12px !important; }
    .welcome-features { display: none !important; }
    .login-section { margin-top: 0 !important; margin-bottom: 8px !important; }
    .login-section input { padding: 10px 8px !important; font-size: 14px !important; }
    .btn-large { padding: 10px 20px !important; font-size: 14px !important; }
    .welcome-note { font-size: 11px !important; }
    #screen-welcome { align-items: flex-start !important; padding-top: 16px !important; }
    .welcome-content { max-width: 100% !important; }
    .q-header { padding: 8px 12px !important; gap: 8px !important; }
    .progress-bar { height: 4px !important; }
    .btn-icon { padding: 4px !important; }
    .question-container { padding: 16px 12px 12px !important; }
    .question-text { font-size: 15px !important; margin-bottom: 16px !important; }
    .question-dimension { font-size: 11px !important; margin-bottom: 4px !important; }
    .option-btn { padding: 12px 14px !important; font-size: 14px !important; border-width: 1.5px !important; border-radius: 10px !important; }
    .results-container { padding: 0 12px 40px; }
    .results-section { padding: 20px 16px; }
    .result-score-card { padding: 20px; }
    .history-item { padding: 12px !important; }
    .result-badge h2 { font-size: 18px !important; }
    .score-ring { width: 90px !important; height: 90px !important; }
    .food-modal { max-width: 95% !important; }
}
/* ===== Plan Header ===== */
.plan-header { margin-bottom: 20px; }
.rec-card {
    padding: 18px 0; border-bottom: 1px solid #EDEDE8;
}
.rec-card:last-child { border-bottom: none; }
.rec-title {
    font-size: 15px; font-weight: 700; color: #2D5A6E; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.rec-body { font-size: 14px; color: #3A4A58; line-height: 1.8; }
.rec-bullet {
    padding-left: 20px; position: relative; margin-bottom: 5px;
}
.rec-bullet::before {
    content: ""; position: absolute; left: 4px; top: 9px;
    width: 6px; height: 6px; border-radius: 50%; background: #7EB8C7;
}
.meal-block { margin-bottom: 14px; }
.meal-label { font-weight: 600; color: #1A232E; font-size: 14px; margin-bottom: 2px; }
.meal-content { color: #3A4A58; font-size: 14px; line-height: 1.7; }
.meal-note {
    margin-top: 10px; color: #6B7A8A; font-size: 13px;
    font-style: italic; padding: 10px 14px; background: #F8F9F7;
    border-radius: 8px;
}
.checklist-item {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px;
    font-size: 14px; color: #3A4A58;
}
/* ===== 食物库 ===== */
.food-cat-row {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px;
    margin-bottom: 8px; padding: 6px 8px; background: #FAFBF8;
    border-radius: 8px; font-size: 14px;
}
.food-cat-label {
    font-weight: 600; color: #2D5A6E; margin-right: 6px; min-width: 36px;
}
.food-name-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 6px; cursor: pointer;
    transition: background 0.15s; font-size: 13px; color: #1A232E;
}
.food-name-link:hover { background: #E8ECF0; }
.food-name-plain {
    display: inline-block; padding: 2px 8px; font-size: 13px; color: #1A232E;
}
.food-gi {
    display: inline-block; padding: 0 6px; border-radius: 8px;
    font-size: 10px; font-weight: 600; line-height: 16px;
}
.gi-low { background: #D4EDDA; color: #155724; }
.gi-mid { background: #FFF3CD; color: #856404; }
.gi-na { background: #E2E3E5; color: #383D41; }
.food-hint { font-size: 11px; font-weight: 400; color: #A0B0B8; }

/* ===== 食物弹窗 ===== */
.food-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.35); display: flex;
    align-items: center; justify-content: center; padding: 20px;
}
.food-modal-content {
    background: #fff; border-radius: 16px; padding: 28px 24px;
    max-width: 360px; width: 100%; position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15); animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.food-modal-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: #6B7A8A; padding: 4px 8px; border-radius: 6px;
}
.food-modal-close:hover { background: #F0F0F0; }
.fm-name { font-size: 20px; font-weight: 700; color: #1A232E; margin-bottom: 10px; }
.fm-gi { font-size: 13px; color: #2D5A6E; font-weight: 600; margin-bottom: 12px; padding: 4px 10px; background: #EEF4F6; border-radius: 6px; display: inline-block; }
.fm-why { font-size: 14px; color: #3A4A58; line-height: 1.7; margin-bottom: 12px; }
.fm-when { font-size: 13px; color: #7EB8C7; font-weight: 500; }

/* ===== 阶段性方案 ===== */
.phase-card {
    border: 1px solid #E8ECF0; border-left: 3px solid #2D5A6E;
    border-radius: 10px; padding: 14px; margin-bottom: 12px;
}
.phase-card:last-child { margin-bottom: 0; }
.phase-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.phase-weeks {
    font-size: 11px; font-weight: 700; color: #fff; background: #2D5A6E;
    padding: 2px 10px; border-radius: 10px;
}
.phase-title { font-size: 15px; font-weight: 700; color: #1A232E; }
.phase-desc { font-size: 13px; color: #6B7A8A; margin-bottom: 8px; }
.phase-focus-title { font-size: 12px; font-weight: 600; color: #2D5A6E; margin-bottom: 4px; }
.phase-adj {
    margin-top: 8px; font-size: 12px; color: #6B7A8A;
    padding: 6px 10px; background: #F8F9F7; border-radius: 6px;
}

/* ===== 导出/打印 ===== */
@media print {
    body { background: #fff !important; }
    #screen-welcome, #screen-questionnaire, .q-header { display: none !important; }
    #screen-results { display: block !important; }
    .screen { display: none !important; }
    #screen-results.active { display: block !important; }
    .results-actions { display: none !important; }
    .food-modal { display: none !important; }
    .rec-card { break-inside: avoid; }
    .phase-card { break-inside: avoid; }
    .results-section { box-shadow: none !important; border: 1px solid #ddd; }
}


/* ===== 登录输入框 ===== */
#screen-welcome input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}
#screen-welcome input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.75);
}
#screen-welcome input:-moz-placeholder {
    color: rgba(255, 255, 255, 0.75);
}


/* ===== 历史记录 ===== */
.history-list { padding: 0 4px; }
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F5F7F8;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.history-item:hover { background: #E8ECF0; }
.history-item-date { font-size: 13px; color: #6B7A8A; }
.history-item-score { font-size: 15px; font-weight: 600; color: #2D5A6E; }

/* ===== 对话界面 ===== */
.conversation-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
    margin-bottom: 12px;
}
.conversation-msg {
    margin-bottom: 12px;
    display: flex;
}
.conversation-msg.user { justify-content: flex-end; }
.conversation-msg.system { justify-content: flex-start; }
.msg-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #1A232E;
}
.conversation-msg.system .msg-content {
    background: #FFFFFF;
    border: 1px solid #E8ECF0;
}
.conversation-msg.user .msg-content {
    background: #2D5A6E;
    color: #FFFFFF;
}
.conversation-input-area {
    display: flex;
    gap: 8px;
}

/* ===== 人格总结卡 ===== */
.persona-card {
    margin-top: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: left;
}
.persona-tabs {
    display: inline-flex;
    background: #EDF1F3;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 16px;
}
.persona-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #41525B;
    cursor: pointer;
    font-family: inherit;
}
.persona-tabs button.active {
    background: #24505F;
    color: #fff;
}
.persona-type-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.persona-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: none;
}
.persona-name {
    font-size: 22px;
    font-weight: 800;
    color: #1A232E;
}
.persona-sub {
    font-size: 12px;
    color: #6B7A8A;
    margin-top: 2px;
}
.persona-tagline {
    margin: 14px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #24505F;
}
.praise-box,
.problem-box,
.solution-box {
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.praise-box { background: #F3F9F4; border-left: 3px solid #4A9E8E; }
.problem-box { background: #FDF5F1; border-left: 3px solid #C75B39; }
.solution-box { background: #EEF4F6; border-left: 3px solid #24505F; }
.praise-box .label,
.problem-box .label,
.solution-box .label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}
.praise-box .label { color: #2F7A6C; }
.problem-box .label { color: #A34E2F; }
.solution-box .label { color: #24505F; }
.praise-box p,
.problem-box p {
    font-size: 14px;
    color: #37464E;
    margin: 0;
}
.solution-box ul {
    list-style: none;
    margin: 0;
}
.solution-box li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #37464E;
    margin-bottom: 8px;
}
.solution-box li:last-child { margin-bottom: 0; }
.solution-box li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #24505F;
}
.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 14px;
}
.persona-tags span {
    font-size: 12px;
    font-weight: 600;
    color: #24505F;
    background: #EAF2F4;
    border-radius: 6px;
    padding: 4px 10px;
}
.persona-donts {
    font-size: 14px;
    color: #37464E;
    margin-top: 12px;
}
.persona-donts ul {
    list-style: none;
    margin-top: 6px;
}
.persona-donts li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    margin-bottom: 6px;
}
.persona-donts li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #C75B39;
}
.persona-share {
    margin-top: 14px;
    background: #FFF8EA;
    border: 1px dashed #D9A85E;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #7A5B1E;
}
.persona-share .share-title {
    font-size: 11px;
    font-weight: 700;
    color: #A97C2C;
    margin-bottom: 4px;
}
.persona-copy {
    margin-top: 10px;
    border: 0;
    background: #24505F;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
}
.diag-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.diag-name { font-size: 20px; font-weight: 800; }
.diag-extra { font-size: 12px; color: #6B7A8A; margin-top: 2px; }
.diag-conf {
    font-size: 12px;
    font-weight: 700;
    color: #24505F;
    background: #EAF2F4;
    border-radius: 6px;
    padding: 5px 9px;
}
.diag-steps { margin-top: 14px; }
.diag-step {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #EDEDE8;
    font-size: 14px;
    color: #37464E;
}
.diag-step:last-child { border-bottom: 0; }
.diag-step .num {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #24505F;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 结果页内嵌详细解释 ===== */
.explain-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.explain-card {
    border: 1px solid #E4E9EC;
    border-radius: 8px;
    padding: 14px;
}
.explain-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A232E;
    margin-bottom: 10px;
}
.explain-label {
    font-size: 12px;
    font-weight: 700;
    color: #2D5A6E;
    margin: 10px 0 6px;
}
.explain-item,
.explain-tip,
.explain-myth {
    font-size: 13px;
    color: #3A4A58;
    line-height: 1.7;
    padding: 6px 10px;
    background: #F7F8F6;
    border-radius: 6px;
    margin-bottom: 6px;
}
.explain-tip { background: #EEF4F6; }
.explain-myth { background: #FDF5F1; }
.explain-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #2D5A6E;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
/* ===== 专业分析推断 ===== */
.infer-item { border-left: 3px solid #7EB8C7; padding: 12px 14px; margin-bottom: 12px; background: #FBFDFE; border-radius: 0 8px 8px 0; }
.infer-title { font-size: 14px; font-weight: 600; color: #2D5A6E; line-height: 1.5; }
.infer-desc { font-size: 13px; color: #45525F; line-height: 1.9; margin-top: 5px; }
.infer-basis { font-size: 12px; color: #9AA8B5; margin-top: 7px; line-height: 1.6; }
.infer-basis span { color: #C75B39; }
.expand-btn { width: 100%; padding: 12px; background: #F1F5F7; border: 1px solid #DCE4E9; border-radius: 10px; font-size: 13px; color: #2D5A6E; cursor: pointer; text-align: center; margin-top: 4px; }
.expand-btn:hover { background: #E8F1F5; }
.expand-area { display: none; margin-top: 14px; border-top: 1px dashed #DCE4E9; padding-top: 14px; }
.expand-area.show { display: block; }

/* ===== 阶段预期变化 ===== */
.phase-expect { font-size: 12px; color: #B06A2A; background: #FFF8F0; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.7; }
.phase-expect::before { content: "👀 你会看到："; font-weight: 600; }


/* ===== 方案针对性调整 ===== */
.plan-item { border-left: 3px solid #6B9E7A; padding: 12px 14px; margin-bottom: 12px; background: #FBFDFB; border-radius: 0 8px 8px 0; }
.plan-title { font-size: 14px; font-weight: 600; color: #3E7A55; line-height: 1.5; }
.plan-desc { font-size: 13px; color: #45525F; line-height: 1.9; margin-top: 5px; }
.plan-tag { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 12px; margin-top: 7px; background: #E8F3EC; color: #3E7A55; }

/* ===== 题目序号与返回上一题 ===== */
.question-index { font-size: 12px; color: #9AA8B5; margin-bottom: 6px; }
.btn-back-bottom { display: block; width: 100%; margin-top: 14px; padding: 12px; background: #fff; color: #2D5A6E; border: 1px solid #DCE4E9; border-radius: 10px; font-size: 13px; cursor: pointer; text-align: center; }
.btn-back-bottom:hover { background: #F1F5F7; }

/* ===== 答题提示语 ===== */
.question-tip { font-size: 12px; color: #7E8A94; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 14px; text-align: center; margin: 0 16px 12px; line-height: 1.7; }

/* ===== 在线咨询页 ===== */
.conv-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #E8ECF0; }
.conv-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: #1A232E; }
.conv-balance { font-size: 12px; color: #C75B39; background: #FFF4E5; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.conv-sub { font-size: 12px; color: #9AA8B5; text-align: center; padding: 10px 16px; background: #F7F9FA; }
.conv-messages { height: calc(100vh - 185px); overflow-y: auto; padding: 16px; background: #F0F2F5; }
.conversation-msg { margin-bottom: 12px; display: flex; }
.conversation-msg.user { justify-content: flex-end; }
.conversation-msg.system { justify-content: flex-start; }
.msg-content { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.8; word-break: break-word; }
.conversation-msg.user .msg-content { background: #2D5A6E; color: #fff; border-bottom-right-radius: 4px; }
.conversation-msg.system .msg-content { background: #fff; color: #3A4A58; border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.conv-input-bar { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #E8ECF0; }
.conv-input-bar input { flex: 1; padding: 12px 14px; border: 1px solid #DEE3E7; border-radius: 10px; font-size: 14px; outline: none; }
.conv-input-bar input:focus { border-color: #2D5A6E; }
.conv-send { padding: 12px 20px; background: #2D5A6E; color: #fff; border: none; border-radius: 10px; font-size: 14px; cursor: pointer; }

/* ===== 营养方案：训练日/休息日 ===== */
.nutri-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.nutri-tab { flex: 1; padding: 10px; border: 1px solid #DCE4E9; border-radius: 8px; background: #fff; color: #2D5A6E; font-size: 13px; font-weight: 600; cursor: pointer; }
.nutri-tab.active { background: #2D5A6E; color: #fff; border-color: #2D5A6E; }
.nutri-tab-body { display: none; }
.nutri-tab-body.show { display: block; }

.nutri-alert { border-radius: 10px; padding: 13px 15px; margin-bottom: 12px; font-size: 13px; line-height: 1.8; }
.nutri-alert.red { background: #FDECEA; border: 1px solid #E8B4AD; color: #A63D2E; }
.nutri-alert.orange { background: #FFF4E5; border: 1px solid #F0D9B0; color: #9A6A2A; }
.nutri-alert-title { font-weight: 700; margin-bottom: 4px; font-size: 14px; }

.nutri-post { background: #E8F3EC; border: 1px solid #BFDCC9; border-radius: 10px; padding: 12px; margin: 12px 0; }
.nutri-post-title { font-size: 13px; font-weight: 700; color: #3E7A55; margin-bottom: 6px; }
.nutri-post-item { font-size: 12px; color: #45525F; line-height: 1.8; margin-bottom: 4px; }
.nutri-tip { font-size: 12px; background: #FFF8F0; border: 1px solid #F0DCC0; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.7; color: #8A6A3A; }

.nutri-remind { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #F7F9FA; border-radius: 8px; margin-bottom: 8px; }
.nutri-remind-ico { width: 28px; height: 28px; border-radius: 8px; background: #E8F1F5; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.nutri-remind b { font-size: 13px; color: #1A232E; display: block; }
.nutri-remind div div { font-size: 12px; color: #6B7A8A; line-height: 1.7; margin-top: 2px; }
