.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    /* 添加以下样式使其居中 */
    transform: translate(-50%, -50%);
   
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    height: 50%;
    margin-top:10%;
    margin-left:20%;
    /* 取消滚动条 */
    overflow: hidden;
    /* 使内容在模态框内居中 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* 绝对定位 */
    top: 30%; /* 距离顶部 10px */
    right: 28%; /* 距离右侧 10px */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


table td[data-stock-code] {
    cursor: pointer;
    color:#FF0000;
}

/* 鼠标悬停时改变单元格背景颜色 */
table td[data-stock-code]:hover {
    background-color: #333333;
    color:#FF3300;
}
/* 加载动画样式 */
#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}