  .mxgraph {
    border: 3px solid #2c5a9e;
    border-radius: 12px;
    background: #f0f5ff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: auto;
    width: 50%;
    max-height: 85vh;          /* 可根据需要调整（如 60vh 或 75vh） */
    overflow: auto;            /* 确保内部滚动条出现 */
}
.tips-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}
.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}
.modal-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #232323;
    margin-top: 0;
}
.modal-text {
    font-size: 20px;
    line-height: 1.8;
    color: #474747;
    margin-bottom: 20px;
}
.modal-text p {
    margin: 0 0 10px 0;
}
.modal-text p:last-child {
    margin-bottom: 0;
}
.blue-text {
    display: inline-block;
    padding: 1px 1px;
    border: 4px dashed #0066cc;
    border-radius: 3px;
    color: black;
    font-weight: bold;
    margin: 0 2px;
}
.red-text {
    display: inline-block;
    padding: 1px 1px;
    border: 4px dashed #990000;
    border-radius: 3px;
    color: black;
    font-weight: bold;
    margin: 0 2px;
}
.close-modal-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 8px;
    background: #409eff;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.close-modal-btn:hover {
    background: #337ecc;
}
.modal-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列等分 */
    gap: 20px; /* 按钮间距 */
}
.tips-toggle-btn {
    position: fixed;
    bottom: 20px; /* 距离底部20px */
    right: 20px;  /* 距离右侧20px */
    width: 80px;
    height: 80px;
    background: #409eff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 99998; /* 略低于弹窗，避免遮挡 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.tips-toggle-btn:hover {
    transform: scale(1.1); /* 悬浮放大 */
    background: #337ecc;
}
.feedback-btn {
    height: 60px;
    border: 2px solid #409eff; 
    border-radius: 8px;
    background: white;
    color: #409eff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.feedback-btn:hover {
    background: #f0f9ff;
}
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-repeat: repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ctext x='50%25' y='50%25' font-family='Microsoft YaHei UI Bold' font-size='30' fill='rgba(0,0,0,0.08)' text-anchor='middle' transform='rotate(-15, 100, 100)'%3E@镜中愚人%3C/text%3E%3C/svg%3E");
    background-size: 250px 250px;
}
.thanks-tag {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 6px 12px;
    background: rgba(64, 158, 255, 0.6);
    color: #2c3979;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 99997;
    transition: all 0.2s ease;
    user-select: none;
}
.thanks-tag:hover {
    background: rgba(64,158,255,0.2);
    transform: translateY(-2px);
}
.thanks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.thanks-modal-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    text-align: center;
}
.thanks-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}
.thanks-modal-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}
.thanks-close-btn {
    padding: 8px 20px;
    background: #f0f9ff;
    color: #409eff;
    border: 1px solid #e6f7ff;
    border-radius: 6px;
    cursor: pointer;
}
/* ========== 全屏加载动画 ========== */
#loadingWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px; /* 关键：自动间距，永不重叠 */
}

/* 旋转图标 */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #eee;
  border-top-color: #2D5B8D;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 主文字 */
.loading-text {
  font-size: 17px;
  color: #2D5B8D;
  font-weight: 500;
  text-align: center;
  padding: 0 20px;
}

/* 辅助文字 */
.loading-desc {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 0 20px;
}

/* 动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 消失动画 */
.loaded #loadingWrapper {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* ========== 移动端完美适配 ========== */
@media (max-width: 768px) {
  .loading-spinner {
    width: 44px;
    height: 44px;
    border-width: 3px;
  }
  .loading-text {
    font-size: 16px;
  }
  .loading-desc {
    font-size: 13px;
  }
}

/* 手机端角落按钮适配 */
@media (max-width: 375px) {
    .modal-content {
        padding: 20px;
    }
    .modal-title {
        font-size: 20px;
    }
    .modal-text {
        font-size: 18px;
    }
    .blue-text {
        padding: 1px 2px;
        border-width: 1px;
    }
    .red-text {
        padding: 1px 2px;
        border-width: 1px;
    }
    .close-modal-btn, .feedback-btn {
        height: 44px;
        font-size: 16px;
    }
    .tips-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}
@media (min-width: 376px) and (max-width: 480px) {
    .modal-title {
        font-size: 21px;
    }
    .modal-text {
        font-size: 17px;
    }

    .blue-text {
        padding: 1px 2px;
        border-width: 1px;
        font-size: 18px;
    }
    .red-text {
        padding: 1px 2px;
        border-width: 1px;
        font-size: 18px;
    }
    .close-modal-btn, .feedback-btn {
        height: 48px;
        font-size: 18px;
    }
    .tips-toggle-btn {
        width: 62px;
        height: 62px;
        font-size: 29px;
    }
}