


html {
    height: 100%;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: #d0cfd8 !important;
}

body {
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
}

#main-area {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin-top: 0 !important;
    position: relative !important;
}


#main-area.mindmap-has-background::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--mindmap-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

#main-area.mindmap-has-background #main-content {
    background-color: transparent !important;
    z-index: 1;
}

#main-content {
    height: 100% !important;
    width: 100% !important;
    overflow: auto !important; 
    overscroll-behavior: contain;
    background-color: #d0cfd8 !important;
    position: relative !important;
}


#mindmap-transform-layer {
    position: relative;
    transform-origin: 0 0;
    
}

#svg-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: visible !important;
    background-image: none !important;
}


#mindmap-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important; 
    overflow: visible !important; 
}

#mindmap-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important; 
    overflow: visible !important; 
}


.node {
    position: absolute;
    cursor: default;
    pointer-events: auto;
    min-width: 0; 
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 10;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    text-align: left; 
    font-family: "微软雅黑", sans-serif;
    font-size: 14px;
    word-wrap: normal; 
    white-space: pre-wrap; 
    line-height: 1.2;
    overflow-wrap: normal; 
    hyphens: none; 
}

.node.parent {
    background-color: #219653;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    min-width: 150px;
    text-align: center;
    justify-content: center;
}

.node.child {
    background-color: #f2c94c;
    color: #333;
}


.connector {
    fill: none;
}


.CopyRight {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
    background-color: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
}

.CopyRight .InnerShell {
    max-width: 1100px;
    margin: 0 auto;
}

.CopyRight a {
    color: #1e6b45;
    text-decoration: none;
}

.CopyRight a:hover {
    text-decoration: underline;
}


.scroll-buttons {
    position: fixed;
    bottom: 88px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.scroll-to-edit,
.scroll-to-zoom-in,
.scroll-to-zoom-out {
    display: block;
}

.scroll-to-edit {
    margin-bottom: 10px;
}

.scroll-to-edit a,
.scroll-to-zoom-in a,
.scroll-to-zoom-out a {
    display: block;
    text-decoration: none;
}

.scroll-to-edit img,
.scroll-to-zoom-in img,
.scroll-to-zoom-out img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-to-edit img:hover,
.scroll-to-zoom-in img:hover,
.scroll-to-zoom-out img:hover {
    opacity: 0.8;
}


.error-message {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1001 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
}


.mindmap-link-badge {
    margin-left: 4px;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}
.mindmap-link-icon {
    font-size: 0.85em;
    opacity: 0.7;
}
.mindmap-link-badge:hover {
    text-decoration: none;
}
.mindmap-link-badge:hover .mindmap-link-icon {
    opacity: 1;
}


.mindmap-note-badge {
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
    cursor: default;
}
.mindmap-note-icon {
    font-size: 0.85em;
    opacity: 0.7;
}
.mindmap-note-badge:hover .mindmap-note-icon {
    opacity: 1;
}
.mindmap-note-popover {
    position: fixed;
    z-index: 10050;
    max-width: 320px;
    max-height: 240px;
    overflow: auto;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .CopyRight {
        padding: 8px 10px;
        font-size: 11px;
    }
    .error-message {
        width: 90% !important;
        max-width: 360px !important;
        padding: 24px 16px !important;
        box-sizing: border-box !important;
    }
}
/* GEEKPATH_PACKAGED_RIGHTS: (c) GeekPath geekpath.cn. All Rights Reserved. Unauthorized copying or redistribution prohibited. */
