html {
    background-color: #fffaf1;
    color: rgba(29, 29, 31, 1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #ff7070;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

tr {
    transition: background-color 0.3s;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #e6f0fa;
}

td {
    color: #333;
    font-size: 14px;
}

.sourceCode {
    border-radius: 4px;
    padding: 4px;
    background-color: #0c0c0c;
    color: #ffffff;
    overflow: auto;
}

a {
    text-decoration: none;
    /* 移除默认下划线 */
    color: #f77373;
    /* 默认颜色 */
    font-weight: 500;
    /* 字体粗细 */
    padding: 4px 8px;
    /* 内边距 */
    border-radius: 4px;
    /* 圆角 */
    transition: all 0.3s ease;
    /* 平滑过渡效果 */
}

/* 悬停效果 */
a:hover {
    color: #3daaf9;
    /* 文字颜色 */
}

/* 已访问链接 */
a:visited {
    color: #fbbfbf;
}

/* 禁用状态 */
a[disabled] {
    color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

@media (min-width: 768px) {
    #TOC {
        position: fixed;
        top: 5vh;
        right: 2vw;
        left: auto;
        max-width: 45vw;
        max-height: 88vh;
        overflow-x: auto;
        overflow-y: auto;
    }

    body {
        width: 50vw;
    }

    img {
        max-width: 40vw;
    }
}

@media (max-width: 768px) {
    img {
        max-width: 80vw;
    }

    th,
    td {
        padding: 10px;
        font-size: 12px;
    }
}