* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #333;
    padding: 0;
    
}

/* ===== 整体容器 ===== */
.app-container {
    max-width: 100%;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8e0d6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px 24px 32px;
    margin: 0 auto;
}

/* ===== 头部 ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}
.lang-btn {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    color: #718096;
    transition: all 0.2s;
}
.lang-btn.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}
.lang-btn:hover {
    border-color: #4a6cf7;
}

/* ===== 步骤进度条 ===== */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e0d6;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.step.active .step-num {
    background: #4a6cf7;
    color: white;
}
.step.completed .step-num {
    background: #48bb78;
    color: white;
}
.step-label {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 4px;
}
.step.active .step-label {
    color: #4a6cf7;
    font-weight: 600;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.step-content.active {
    display: block;
}

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

/* ===== 拍照/选择按钮 ===== */
.upload-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}
.btn-camera, .btn-upload {
    flex: 1;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}
.btn-camera {
    background: #4a6cf7;
    color: white;
}
.btn-upload {
    background: #48bb78;
    color: white;
}
.btn-camera:active, .btn-upload:active {
    transform: scale(0.97);
}

/* ===== 上传预览 ===== */
.upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #f7fafc;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}
.upload-box:hover {
    border-color: #4a6cf7;
}
.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.upload-box p {
    font-size: 16px;
    color: #4a5568;
}
.upload-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
}
#fileInput {
    display: none;
}

.preview-box {
    text-align: center;
    margin: 12px 0;
}
.preview-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* ===== 表单 ===== */
.form-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}
.form-group {
    flex: 1;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}
.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #4a6cf7;
}

/* ===== 按钮 ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-secondary {
    padding: 10px 24px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: #e2e8f0;
}

/* ===== 加载 ===== */
.loading {
    text-align: center;
    padding: 40px 0;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #4a6cf7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 结果卡片 ===== */
.result-card {
    border: 1px solid #e8e0d6;
    border-radius: 12px;
    background: #f7fafc;
    padding: 16px;
    margin: 12px 0;
}
.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 8px;
}
.result-icon {
    font-size: 20px;
}
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.result-item {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #edf2f7;
}
.result-item .label {
    color: #a0aec0;
    font-size: 11px;
}
.result-item .value {
    font-weight: 600;
}

/* ===== 问卷 ===== */
.question-progress {
    margin-bottom: 16px;
}
.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}
#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #4a6cf7, #6a4cf7);
    transition: width 0.3s;
}

.question-card {
    border: 1px solid #e8e0d6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    margin: 12px 0;
}
.question-card .q-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 8px;
}
.question-card .q-content {
    font-size: 15px;
    color: #4a5568;
}
.options {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.options label {
    flex: 1;
    min-width: 50px;
    text-align: center;
    padding: 8px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.options input {
    display: none;
}
.options input:checked + span {
    color: #4a6cf7;
}
.options label:has(input:checked) {
    border-color: #4a6cf7;
    background: #ebf0ff;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.nav-buttons .btn-primary {
    flex: 1;
}
.nav-buttons .btn-secondary {
    flex: 0 0 auto;
}

/* ===== 结果页 ===== */
.success-icon {
    font-size: 56px;
    text-align: center;
}
.result-summary {
    text-align: center;
    margin-bottom: 20px;
}
.result-summary h2 {
    font-size: 22px;
    color: #2d3748;
    margin: 8px 0 4px;
}
.result-summary p {
    color: #718096;
}

.diagnosis-item {
    border: 1px solid #e8e0d6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    margin: 12px 0;
    border-left: 4px solid #4a6cf7;
}
.diagnosis-item .dimension-name {
    font-weight: 700;
    font-size: 16px;
}
.diagnosis-item .severity {
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
}
.severity-mild { background: #fefcbf; color: #975a16; }
.severity-moderate { background: #fbd38d; color: #9c4221; }
.severity-severe { background: #feb2b2; color: #9b2c2c; }

.tea-card {
    border: 1px solid #e8e0d6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 12px 16px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tea-card .tea-icon {
    font-size: 28px;
}
.tea-card .tea-info {
    flex: 1;
}
.tea-card .tea-name {
    font-weight: 600;
}
.tea-card .tea-desc {
    font-size: 12px;
    color: #718096;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.action-buttons .btn-secondary {
    flex: 0 0 auto;
}
.action-buttons .btn-primary {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
    .app-container {
        padding: 16px 14px 24px;
        border-radius: 12px;
    }
    .header h1 {
        font-size: 17px;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
    .options label {
        font-size: 11px;
        padding: 6px 2px;
        min-width: 40px;
    }
    .upload-options {
        flex-direction: column;
    }
    .question-card,
    .diagnosis-item,
    .tea-card,
    .result-card {
        padding: 14px 16px;
        border-radius: 10px;
    }
}

/* ===== 预览框专用样式（默认隐藏，上传后显示为 flex 列） ===== */
.preview-box {
    display: none !important;          /* 默认隐藏，不影响初始页面 */
    flex-direction: column !important;
    align-items: center !important;
    margin: 12px 0 !important;
}
.preview-box img {
    max-width: 100% !important;
    max-height: 300px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    object-fit: contain !important;
    margin-bottom: 12px !important;
}
.preview-box .btn-secondary {
    margin: 0 !important;
}
/* 当预览框显示时（由 JS 设置 style.display） */
.preview-box[style*="display: block"],
.preview-box[style*="display: flex"] {
    display: flex !important;
}

/* ===== 诊断结论行距调整 ===== */
#physiqueResult p {
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
}
#physiqueResult p:last-child {
    margin-bottom: 0 !important;
}

/* ===== 调整“舌诊分析结果”标题和特征词样式 ===== */
/* 标题与“舌象表现”一致：16px，正常粗细 */
.result-header {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* 特征词（淡红舌等）与“舌象表现”后的文字一致：16px，正常粗细 */
.result-item .value {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* 行距调小2px（原 margin-bottom:12px → 10px；line-height:1.8 → 1.7） */
#physiqueResult p {
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}
#physiqueResult p:last-child {
    margin-bottom: 0 !important;
}

/* ===== 问题卡片：与维度描述小字（14px）一致 ===== */
.question-card .q-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px !important;  /* 与维度描述一致 */
    margin-bottom: 10px;
}
.question-card .q-number {
    font-weight: normal !important;
    font-size: inherit !important;
}
.question-card .q-content {
    font-weight: normal !important;
    font-size: inherit !important;
}
/* 选项按钮维持 13px，略小于问题文字 */
.options label {
    font-size: 13px !important;
}

/* ===== 强制问题卡片字体为 14px（与维度描述一致） ===== */
.question-card {
    font-size: 14px !important;
}
.question-card .q-text {
    font-size: 14px !important;
}
.question-card .q-number {
    font-size: 14px !important;
    font-weight: normal !important;
}
.question-card .q-content {
    font-size: 14px !important;
    font-weight: normal !important;
}
.dimension-title p {
    font-size: 14px !important;
}

/* ===== 统一维度描述和问题文字为 16px ===== */
.dimension-title p {
    font-size: 16px !important;
    font-weight: normal !important;
}
.question-card {
    font-size: 16px !important;
}
.question-card .q-text {
    font-size: 16px !important;
}
.question-card .q-number {
    font-size: 16px !important;
    font-weight: normal !important;
}
.question-card .q-content {
    font-size: 16px !important;
    font-weight: normal !important;
}

/* ===== 底部操作按钮美化 ===== */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e0d6;
}
.action-buttons .btn-secondary {
    background: transparent;
    color: #4a5568;
    border: 1.5px solid #cbd5e0;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.action-buttons .btn-secondary:hover {
    background: #f7fafc;
    border-color: #4a6cf7;
    color: #4a6cf7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
}
.action-buttons .btn-secondary:active {
    transform: translateY(0);
}
.action-buttons .btn-primary {
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.30);
}
.action-buttons .btn-primary:active {
    transform: translateY(0);
}

/* ===== 免责声明下移 20px ===== */
.action-buttons span {
    margin-top: 15px !important;
}

/* ===== 限制页面最大宽度，并在屏幕居中 ===== */
@media (min-width: 769px) {
    .app-container {
        max-width: 860px !important;
        margin: 20px auto !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    body {
        background: #f5f7fa !important;
        padding: 16px !important;
    }
}

/* ===== 隐藏上传选项 ===== */
    display: none !important;
}

/* 隐藏上传选项（由 JS 控制） */
    display: none !important;
}

    display: none !important;
}

/* ===== 姓名输入弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 36px 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}
.modal-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}
.modal-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #f7fafc;
}
.modal-input:focus {
    border-color: #4a6cf7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.12);
}
.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    justify-content: center;
}
.modal-btn {
    padding: 10px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    min-width: 100px;
}
.modal-btn-cancel {
    background: #edf2f7;
    color: #4a5568;
}
.modal-btn-cancel:hover {
    background: #e2e8f0;
}
.modal-btn-confirm {
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(74, 108, 247, 0.25);
}
.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.30);
}
.modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== 弹窗居中修复（覆盖原有规则） ===== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    display: none;
    z-index: 99999 !important;
}
.modal-overlay.active {
    display: block !important;
}
.modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 32px 36px 28px !important;
    max-width: 420px !important;
    width: 90% !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    text-align: center !important;
}

/* ===== 报告顶部信息 ===== */
.report-header {
    background: #ffffff;
    border: 1px solid #e8e0d6;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.report-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}
.report-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #4a5568;
}
.report-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.report-icon {
    font-size: 16px;
}
@media (max-width: 480px) {
    .report-header {
        padding: 16px 18px;
    }
    .report-header-top {
        font-size: 16px;
    }
    .report-header-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
}

/* ============ V3 报告页三段式 + step2/step4 新增样式（追加，不清理旧类） ============ */

.report-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.report-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* 舌图行 */
.tongue-image-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tongue-image-box {
    text-align: center;
    flex: 1 1 45%;
    min-width: 140px;
}
.tongue-image-box .tongue-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tongue-image-box .tongue-image-label {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

/* 图片质量 */
.image-quality {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 8px;
}
.image-quality.valid   { background: #f0fff4; color: #2f855a; }
.image-quality.invalid { background: #fff5f5; color: #c53030; }

/* 证型标签 */
.syndrome-tags { margin: 4px 0 8px; }
.syndrome-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 6px 4px 0;
    background: #ebf8ff;
    color: #2b6cb0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* 特征 */
.feature-item { margin-bottom: 14px; }
.feature-sub { font-size: 12px; color: #a0aec0; margin-top: 2px; }
.feature-meaning { font-size: 13px; color: #4a5568; line-height: 1.7; margin-top: 8px; }

/* 八纲原文 */
.eight-principle-basis {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
    margin-top: 8px;
    padding: 8px 10px;
    background: #f7fafc;
    border-radius: 6px;
}
.tips-line { font-size: 12px; color: #a0aec0; margin-top: 10px; line-height: 1.6; }

/* 推荐症状 */
.symptom-item {
    padding: 10px 12px;
    border-left: 3px solid #4299e1;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}
.symptom-item.compact { padding: 6px 10px; }
.symptom-item .symptom-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.symptom-item .symptom-name { font-weight: 600; color: #2d3748; font-size: 14px; }
.symptom-item .symptom-probility { color: #e53e3e; font-weight: 600; font-size: 13px; }
.symptom-item .symptom-reason { font-size: 12px; color: #718096; margin-top: 6px; line-height: 1.6; }
.btn-toggle-symptoms {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.btn-toggle-symptoms:hover { background: #e2e8f0; }

/* 问卷得分条 */
.score-list { display: flex; flex-direction: column; gap: 10px; }
.score-item { padding: 6px 0; }
.score-item .score-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    font-size: 13px;
}
.score-item .score-name { color: #2d3748; font-weight: 500; }
.score-item .score-value { font-weight: 600; font-size: 12px; color: #4a5568; }
.score-bar-bg {
    width: 100%;
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.score-bar-fill.level-inactive { background: #48bb78; }
.score-bar-fill.level-mild     { background: #ecc94b; }
.score-bar-fill.level-moderate { background: #ed8936; }
.score-bar-fill.level-severe   { background: #e53e3e; }

/* 等级颜色 */
.level-inactive { color: #48bb78; }
.level-mild     { color: #d69e2e; }
.level-moderate { color: #ed8936; }
.level-severe   { color: #e53e3e; }

/* 小结 + 结论行 */
.conclusion-summary {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #4299e1;
}
.conclusion-line { font-size: 14px; line-height: 1.8; margin: 0 0 8px; }

/* 四诊合参块 */
.comprehensive-box {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-left: 3px solid #4299e1;
}
.comprehensive-title {
    font-weight: 700;
    color: #2b6cb0;
    font-size: 14px;
    margin-bottom: 6px;
}
.comprehensive-line {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
    margin: 2px 0;
}

/* 调理方案卡片 */
.plan-card {
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}
.plan-card.plan-primary {
    background: linear-gradient(135deg, #fffaf0 0%, #fff 100%);
    border-left: 4px solid #ed8936;
}
.plan-card.plan-secondary {
    background: #f7fafc;
    border-left: 4px solid #a0aec0;
}
.plan-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.plan-role { font-size: 15px; font-weight: 700; color: #2d3748; }
.plan-score { font-size: 13px; color: #718096; margin-top: 4px; }
.plan-nature { font-size: 12px; color: #a0aec0; margin-top: 4px; }

.tea-ingredients,
.tea-usage { font-size: 12px; color: #718096; margin-top: 4px; }
.tea-card-empty { opacity: .55; }
.btn-buy-single {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #ed8936;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}
.btn-buy-single:hover { background: #dd6b20; }

.health-plan-box {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}
.health-plan-box .health-plan-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    margin-bottom: 6px;
}
.health-plan-box p { font-size: 13px; color: #4a5568; margin: 4px 0; line-height: 1.6; }

.plan-actions { margin-top: 12px; text-align: center; }

/* ===== V3 修复：舌图对齐（两张图等高等宽，完整显示） ===== */
.tongue-image-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tongue-image-box .tongue-image {
    width: 100%;
    height: 320px;
    max-height: none;
    object-fit: contain;
    background: #f7fafc;
}

/* ===== V3 修复 v2：舌图高度优先 + 完整显示 + 两侧可裁 ===== */
.tongue-image-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tongue-image-box {
    flex: 1 1 45%;
    min-width: 0;
    height: 340px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7fafc;
    border-radius: 10px;
}
.tongue-image-box .tongue-image {
    height: 320px;
    width: auto;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    display: block;
    margin: 0;
}
.tongue-image-box .tongue-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    color: #718096;
    text-align: center;
    padding: 6px 4px;
    background: linear-gradient(transparent, rgba(247,250,252,0.95));
    z-index: 2;
}

/* ===== V3 修复 v3：彻底解决舌图裁切 ===== */
.tongue-image-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}
.tongue-image-box {
    flex: 1 1 0;
    min-width: 0;
    height: 340px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7fafc;
    border-radius: 10px;
}
.tongue-image-box .tongue-image {
    height: 320px;
    width: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: none;
    object-position: center center;
    flex-shrink: 0;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.tongue-image-box .tongue-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    color: #718096;
    text-align: center;
    padding: 6px 4px;
    background: linear-gradient(transparent, rgba(247,250,252,0.95));
    z-index: 2;
}

/* ===== 英文报告页：品牌名 + 说明样式 ===== */
.plan-brand {
    font-size: 22px;
    font-weight: 700;
    color: #2b6cb0;
    margin-top: 8px;
    line-height: 1.3;
}
.plan-subtitle {
    font-size: 14px;
    color: #4a5568;
    margin-top: 4px;
    font-weight: 500;
}
.plan-pinyin {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.plan-brand-small {
    font-size: 12px;
    color: #2b6cb0;
    margin-top: 4px;
    font-style: italic;
}
.plan-explanation {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid #4299e1;
}

/* 得分条英文副标题 */
.score-subname {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
    margin-left: 4px;
}
