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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    /* 背景：左侧50%与左侧栏一致(#fff)，右侧50%波点，固定不随滚动/鼠标变换 */
    background-color: #fff;
    background-image:
        linear-gradient(to right, #fff 0%, #fff 50%, transparent 50%),
        radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat, repeat;
    background-attachment: fixed, fixed;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面顶部的控制栏 */
.top-disease-selector {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 0px 20px;
    min-height: 42px;
    box-shadow: none;
    border-bottom: 1px solid #818181;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.top-left-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
    min-width: 0;
}

.top-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
    justify-content: flex-start;
    min-width: 0;
}

.ocr-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.ocr-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #4b5563;
    font-size: 11px;
    white-space: nowrap;
}

.ocr-status-tag::before {
    content: "●";
    font-size: 8px;
    margin-right: 4px;
    color: #4f46e5;
}

/* 响应式设计：当屏幕宽度非常小时，才换行 */
/* 响应式设计暂时关闭 */
/* @media (max-width: 768px) {
    .top-disease-selector {
        flex-wrap: wrap;
    }
    
    .top-left-controls,
    .top-right-controls {
        width: 100%;
        flex: 0 0 100%;
    }
} */

/* 顶栏疾病类型按钮 */
.top-disease-selector .disease-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.top-disease-selector .disease-button {
    width: auto;
    min-width: 90px;
    padding: 6px 16px;
    flex-shrink: 0;
    border: 1px solid #818181;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    transition: all 0.2s ease;
}

.top-disease-selector .disease-button:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    background-color: #e8f2ff;
    box-shadow: none;
}

.top-disease-selector .disease-button.active {
    border-color: #4a90e2;
    background: #4a90e2;
    color: #fff;
}

/* 更多选择下拉框 - 参考"参考"下拉框格式 */
.more-disease-select-wrapper {
    display: flex;
    align-items: center;
}

.more-disease-select {
    padding: 7px 14px;
    border: 1px solid  #818181;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.more-disease-select:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.more-disease-select:focus {
    outline: none;
    border-color: #4a90e2;
    color: #4a90e2;
}

.more-disease-select.active {
    border-color: #4a90e2;
    background-color: #fff;
    color: #4a90e2;
}

.more-disease-select.active:hover {
    border-color: #4a90e2;
}

/* 刷新按钮样式 */
.refresh-button {
    padding: 6px;
    border: none;
    border-radius: 4px;
    background-color: #4a91e200;
    color: #101010;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-shadow: none;
}

.refresh-button:hover {
    background-color: #e8f2ff;
    box-shadow: none;
    transform: translateY(-1px);
    border: 1px solid #4a90e2;
}

.refresh-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.refresh-button:hover .refresh-icon {
    transform: rotate(180deg);
}

/* 含辛普森测量按钮 */
.simpson-button {
    padding: 7px 14px;
    border: 1px solid #818181;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.simpson-button:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    background-color: #e8f2ff;
}

.simpson-button:focus {
    outline: none;
    border-color: #4a90e2;
}

.simpson-button.active {
    border-color: #4a90e2;
    background-color: #4a90e2;
    color: #fff;
    box-shadow: none;
    font-weight: 600;
}


/* 顶栏参考范围选择框 */
.reference-range-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

/* 参考 */
.reference-range-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.reference-range-select {
    padding: 7px 14px;
    border: 1px solid #818181;
    border-radius: 4px;
    font-size: 13px;
    background-color: #ffffff00;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    max-width: 200px;
    flex-shrink: 1;
}

.reference-range-select:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.reference-range-select:focus {
    outline: none;
    border-color: #4a90e2;
}

/*体重*/
.weight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 200px;
}

.weight-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.weight-input {
    padding: 7px 14px;
    border: 1px solid #818181;
    border-radius: 4px;
    background-color: transparent;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 80px;
    min-width: 70px;
    flex-shrink: 0;
    text-align: center;
}


.weight-input:hover {
    border-color: #4a90e2;
}

.weight-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.weight-reference-display {
    font-size: 10px;
    color: #888;
    font-style: italic;
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 1px 14px;
    background-color: transparent;
    border-radius: 4px;
    min-width: 150px;
    text-align: left;
    display: inline-block;
}

.weight-option-btn {
    background-color: transparent;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    padding: 1px 2px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-style: italic;
    margin: 0;
}

.weight-option-btn:hover {
    background-color: #e8f2ff;
    border-color: #4a90e2;
    color: #4a90e2;
}

.weight-option-btn.active {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
    font-weight: 500;
}

.weight-option-btn.active:hover {
    background-color: #357abd;
    border-color: #357abd;
}


/* 左侧栏（50%） - 位置固定，高度自适应，外侧边缘与右侧栏对齐，实线分隔 */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 42px;
    width: 50%;
    height: calc(100vh - 42px);
    padding: 14px 14px 18px 14px;
    overflow-y: auto;
    background-color: #fff;
    border-right: 1px solid #818181;
    z-index: 10;
    box-sizing: border-box;
}

/* 左侧栏首行空白边框 */
.parameters-section-header {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: none;
}

/* 左侧栏首行标题 */
.parameters-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

/* 左侧栏参数输入区域 */
.parameters-section {
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: none;
}

.parameters-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}





/* M型参数 - 2列布局*/
.m-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 0;
}

.m-type-item {
    display: flex;
    flex-direction: column;
}

.m-type-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
    letter-spacing: 0.2px;
}

.m-type-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #81818100;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    background-color: #f3f3f380;
}

.m-type-input:hover {
    border-color: #818181;
}

.m-type-input:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #fff;
}



/* 合并显示的输入框和显示值 */
.combined-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.combined-input-wrapper .m-type-input {
    flex: 1;
}

/* 确保所有combined-input-wrapper中的input-with-label-wrapper宽度一致 */
.combined-input-wrapper .input-with-label-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

/* EDV辛普森、ESV辛普森、EF辛普森输入框宽度保持一致 */
.combined-input-wrapper .simpson-input {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    max-width: 50%;
}

/* 带标签的输入框容器 */
.input-with-label-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #e1e8ed05;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f3f3f380;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.input-with-label-wrapper:hover {
    border-color: #818181;
}

.input-with-label-wrapper:focus-within {
    border-color: #4a90e2;
}

.input-with-label-wrapper .m-type-input {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid #81818100;
    border-radius: 2px;
    padding: 5px 8px;
    font-size: 13px;
    background-color: transparent;
    margin: 0;
}

.input-with-label-wrapper .m-type-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background-color: #fff;
}

.input-with-label-wrapper .m-type-input:disabled {
    background-color: #f5f7fa;
    color: #333;
    cursor: not-allowed;
}

.input-with-label-wrapper .m-type-input[readonly] {
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.input-with-label-wrapper .input-label-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #e2e3e3b6;
    color: #666;
    font-size: 13px;
    border-left: 1px solid #f6f6f6;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

/* 当输入框被禁用时，调整容器和单位显示样式 */
.input-with-label-wrapper .m-type-input:disabled + .input-label-text {
    background-color: #dadcdd;
}

.m-type-display-small {
    display: inline-block;
    min-width: 60px;
    padding: 6px 10px;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    background-color: transparent;
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
}

.m-type-item-combined {
    grid-column: span 2;
}

.pressure-gradient-display {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    margin-left: 4px;
}

.pressure-gradient-display-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pressure-gradient-label {
    font-size: 13px;
    color: #666;
    font-weight: bold;
    margin-left: 4px;
}

.spherical-display {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* 带标签的显示框 */
.display-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.display-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* 心肌运动和频谱多普勒 - 单列布局 */
.other-params-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 0;
}

.other-param-item {
    display: flex;
    flex-direction: column;
}

/* dp/dt：单独占一行（跨越两列） */
#dpdtInputItem {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#dpdtInputItem .other-param-input {
    width: 140px;
    min-width: 140px;
    flex: 0 0 140px;
}

#dpdtInputItem .other-param-label {
    white-space: nowrap;
    margin-bottom: 0;
}

/* dp/dt 同行显示：输入框与选择框略缩窄 */
#dpdtInputItem input[data-param="dp/dt"] {
    width: 110px;
    min-width: 110px;
    flex: 0 0 110px;
}


#dpdtInputItem .dpdt-display-btn-group {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

#dpdtInputItem .dpdt-display-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#dpdtInputItem .dpdt-display-btn.active {
    border-color: #4a90e2;
    background-color: #4a90e2;
    color: #fff;
}

#dpdtInputItem .dpdt-display-btn:hover:not(.active) {
    border-color: #4a90e2;
    background-color: #e8f2ff;
    color: #4a90e2;
}

.other-param-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
    letter-spacing: 0.2px;
}

.other-param-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #e1e8ed00;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    background-color: #f3f3f380;
}

.other-param-input:hover {
    border-color: #818181;
}

.other-param-input:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #fff;
}

.other-param-input:disabled {
    background-color:#f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}



/* 右侧栏（50%） - 尽量占满页面垂直高度，支持垂直方向手动调节 */
.right-sidebar {
    position: fixed;
    top: 42px;
    right: 0;
    width: 50%;
    height: calc(100vh - 42px);
    min-height: 200px;
    max-height: calc(100vh - 66px); /* 顶栏42px + 底部预留24px，防止拖拽超出视口 */
    padding: 14px 14px 18px 14px;
    overflow: auto;
    background-color: transparent;
    z-index: 10;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 右侧栏垂直高度调节 - 右下角拖拽区域，增大接触面积 */
.right-sidebar-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 24px;
    cursor: ns-resize;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* 简单提示 - 虚线与外边框统一 */
.right-sidebar-resize-handle::after {
    content: '';
    width: 14px;
    height: 0;
    border-top: 1px dashed #818181;
    margin-right: 4px;
    margin-bottom: 4px;
}
/* 模板生成区域 - 占满右侧栏高度 */
.template-section {
    background-color: #fff;
    border-radius: 0;
    padding: 8px 12px;
    box-shadow: none;
    margin-top: 0;
    border: 1px dashed #666;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.template-content {
    margin-bottom: 10px;
}

.template-section h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.template-section h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background-color: #4a90e2;
    border-radius: 2px;
}

/* 所见区域 - 占据主要垂直空间，尽量占满 */
#findingsText {
    flex: 1 1 auto;
    min-height: 150px;
}

/* 结论区域 - 固定高度 */
#conclusionText {
    flex: 0 0 auto;
    min-height: 70px;
}

.template-text {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db00;
    border-radius: 4px;
    padding: 8px 10px;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 6px;
    width: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace, 'Microsoft YaHei', sans-serif;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
    /* 这里用于“所见/结论”文本对齐：开启 word-spacing/letter-spacing 会破坏等宽对齐效果 */
    letter-spacing: 0;
    word-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

.template-text:focus {
    outline: none;
    border: 1px solid #4a90e2;
    background-color: #fff;
}

/* 只读状态样式 */
.template-text[readonly] {
    background-color: #f8f9fa;
    cursor: default;
    resize: none;
    border: 1px solid #d1d5db;
}

.template-text[readonly]:focus {
    border: 1px solid #d1d5db;
    background-color: #f0f2f5;
}

.template-text::placeholder {
    color: #999;
    font-style: italic;
}

/* 结论部分特殊样式 - 通过类名控制 */
.template-section h4.conclusion-title {
    margin-top: 6px;
}

/* 标题和复制按钮在同一行 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.section-header h4 {
    margin: 0;
    flex: 1;
}

.section-header h4.conclusion-title {
    margin-top: 0;
}

/* 小复制按钮样式 */
.copy-btn-small {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 4px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.copy-btn-small:hover {
    background-color: #357abd;
    box-shadow: none;
    transform: translateY(-1px);
}

.copy-btn-small:active {
    transform: translateY(0);
    box-shadow: none;
}

.copy-btn-small.copied {
    background-color: #52c41a;
    box-shadow: none;
}

.copy-btn-small.copied:hover {
    background-color: #45a018;
    box-shadow: none;
}

.copy-btn-small svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.copy-button {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: block;
    margin: 0;
    box-shadow: none;
    min-width: 120px;
}

.copy-button:hover {
    background-color: #357abd;
    box-shadow: none;
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.copy-button.copied {
    background-color: #52c41a;
    box-shadow: none;
}

.copy-button.copied:hover {
    background-color: #45a018;
    box-shadow: none;
}

/* 参考区域 */
.reference-range-section {
    padding: 16px 32px;
    background-color: #fff;
}

.reference-range-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
}

.reference-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.reference-tag {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.reference-tag:hover {
    color: #4a90e2;
}

.reference-tag.active {
    color: #4a90e2;
    border-bottom-color: #e74c3c;
}

/* 瓣口血流标签按钮 */
.valve-flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 0;
}

.valve-flow-tag {
    padding: 4px 10px;
    border: 1.5px dashed #d1d5db;
    border-radius: 2px;
    background-color: #f9fafb;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.valve-flow-tag:hover {
    border-color: #bbb;
    background-color: #e8e8e8;
}

/* 各瓣口血流正常 - 绿色 */
.valve-flow-tag-normal.active {
    border-color: #52c41a;
    background-color: #52c41a;
    color: #fff;
}

/* 反流标签 - 红色 */
.valve-flow-tag-red.active {
    border-color: #e74c3c;
    background-color: #e74c3c;
    color: #fff;
}

/* 反流速输入框样式 */
.regurgitation-velocity-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 0;
}

.regurgitation-velocity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.regurgitation-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    width: 130px;
    flex-shrink: 0;
}

.regurgitation-input {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
}

.regurgitation-pressure-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    margin-left: 16px;
}

.regurgitation-pressure-display {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    min-width: 60px;
}

.regurgitation-severity-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    margin-left: 16px;
}

.regurgitation-severity-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.regurgitation-severity-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

.regurgitation-severity-btn:hover {
    border-color: #4a90e2;
    background-color: #e8f2ff;
    color: #4a90e2;
}

.regurgitation-unknown-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.regurgitation-unknown-btn:hover {
    border-color: #4a90e2;
    background-color: #e8f2ff;
    color: #4a90e2;
}

.regurgitation-unknown-btn.active {
    border-color: #4a90e2;
    background-color: #4a90e2;
    color: #fff;
    font-weight: 600;
}

.regurgitation-severity-btn.active {
    border-color: #4a90e2;
    background-color: #4a90e2;
    color: #fff;
    font-weight: 600;
}

/* 心率部分样式 */
.heart-rate-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.heart-rate-input {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
}

/* 节律不齐按钮 */
.rhythm-irregular-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.rhythm-irregular-btn:hover {
    border-color: #4a90e2;
    background-color: #e8f2ff;
    color: #4a90e2;
}

.rhythm-irregular-btn.active {
    border-color: #4a90e2;
    background-color: #4a90e2;
    color: #fff;
    font-weight: 600;
}

/* MMVD标题和输入框同行样式 */
.section-title-with-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.mmvd-thickness-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.mmvd-thickness-input {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
}

/* MMVD特定输入框行样式 */
.mmvd-combined-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    margin-bottom: 0;
}

/* 让“腱索断裂”按钮组与“脱垂程度”有更好的视觉间距 */
.regurgitation-severity-buttons[data-param="腱索断裂类型"] {
    margin-left: 12px;
}

.mmvd-severity-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    margin-left: 16px;
}

/* LA Volume和LAVi样式 */
.la-volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    margin-bottom: 0;
}

.la-volume-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.la-volume-input {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
}

.unit-label {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    white-space: nowrap;
}

.lavi-display {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
}

.lavi-display.red {
    color: red;
}

.lavi-unit {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    white-space: nowrap;
}

/* 参考值样式 */
.reference-value {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    margin-left: 6px;
    font-style: italic;
}

/* 优化section-header的对齐 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.readonly-hint {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    padding: 3px 8px;
    background-color: #fff3cd;
    border-radius: 4px;
    white-space: nowrap;
    cursor: help;
    border: 1px solid #ffc107;
    transition: all 0.2s ease;
}

.readonly-hint:hover {
    background-color: #ffe69c;
    border-color: #ff9800;
    color: #333;
}

/* 优化容器间距 */
.container {
    display: flex !important;
    flex-direction: row !important;
    height: calc(100vh - 42px);
    margin-top: 42px;
    align-items: flex-start;
    width: 100%;
    gap: 0;
}

/* Tooltip 提示样式 */
.tooltip-trigger {
    cursor: pointer;
    position: relative;
}

.info-tooltip {
    position: fixed;
    background-color: #1e5697;
    color: #fff;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-width: 350px;
    pointer-events: auto;
    animation: tooltipFadeIn 0.2s ease;
}

/* 移除气泡三角形 */
.info-tooltip::before {
    display: none;
}

/* 显示在下方时的三角形（在顶部） */
.info-tooltip.tooltip-bottom::before {
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    border-top: none;
    border-bottom: 8px solid rgba(248, 248, 248, 0.85);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* 显示在上方时的三角形（在底部） */
.info-tooltip.tooltip-top::before {
    left: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(-50%);
    border-bottom: none;
    border-top: 8px solid rgba(248, 248, 248, 0.95);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.info-tooltip a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.info-tooltip a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

/* tooltip-subtle 中的链接颜色 */
.info-tooltip.tooltip-subtle a {
    color:#e73c56;
    text-decoration: underline;
    opacity: 1;
}

.info-tooltip.tooltip-subtle a:hover {
    color: #357abd;
    text-decoration: underline;
}

.info-tooltip strong {
    color: #e73c56;
    font-weight: 600;
    background-color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
}

/* tooltip-subtle 中的加粗文本颜色 */
.info-tooltip.tooltip-subtle strong {
    color: #e73c56;
    font-weight: 600;
    background-color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
}


