* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: Consolas, SimHei, monospace;
    word-break: break-all;
}

body {
    /* background-color: #3b3c3e; */
    background: linear-gradient(45deg, #08273c 0%, #11042e 100%);
    color: #b9b9b9;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* 工具栏样式 */
.toolbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #21053e 0%, #11326c 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 5px;
}

.toolbar {
    display: flex;
    flex-direction: column;
    height: 57px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0px;
    /* 隐藏滚动条但保留滚动功能 */
    scrollbar-width: none;
    /* Firefox */
}

.toolbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.toolbar-row {
    display: flex;
    margin-top: 4px;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 3px 5px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar-btn.primary {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.content-container {
    position: fixed;
    top: calc(57px + 10px);
    left: 0;
    width: 100%;
    height: calc(100vh - 57px - 10px);
    overflow: auto;
}

.content {
    /* width: 2000px; */
    /* height: 2000px; */
    /* transform:scale(1); */
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    padding: 10px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    /* color: #7f8c8d; */
    color: black;
    font-size: 14px;
}

.card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(200, 0, 0, 0.5);
    z-index: 10;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 18px;
}

.line-container {
    position: absolute;
}
.line {
    position: absolute;
}
.line-drop-previous path {
    stroke-dasharray: 10, 5, 3, 5;
}
/* .line path{
    transition: strokeWidth 0.3s ease;
} */

.fright{
    float:right;
}

.field{
    transition: font-weight 0.05s ease, border 0.05s ease, background 0.3s ease, border-right 0.05s ease, border-left 0.05s ease;
}

.editmode .run {
    display: none;
}
.runmode .edit {
    display: none;
}

.editmode .card .field:hover {
    font-weight: 600;
    border: 1px solid #000;
}
.editmode .card:hover .fleft .field::after {
    content: "\00a0"; 
    border-right: 1px solid #000;
}
.editmode .card:hover .fright .field::before {
    content: "\00a0"; 
    border-left: 1px solid #000;
}
.editmode .card:hover .field {
    background: #ddd;
    /* border-left: 1px solid #000; */
}

.selectionBox {
    position: absolute;
    background-color: rgba(52, 152, 219, 0.3);
    border: 2px solid #3498db;
    display: none;
    pointer-events: none;
}

.linemark{
    opacity: 0.1;
}
.linemarkdirect-right{
    position: relative; left: 9px
}
.linemarkdirect-left{
    position: relative; left: -9px
}
.linemarkposition-d5{
    position: absolute;
    left: calc(50% - 4px);
    top: calc(100% - 14px);
}
.linemarkposition-u5{
    position: absolute;
    left: calc(50% - 4px);
    top: calc(0% - 4px);
}
