@font-face {
    font-family: 'love-zh';
    src: url('https://ziyanlovejintao.pages.dev/source/love-zh.woff') format('woff');
}

@font-face {
    font-family: 'love-en';
    src: url('https://ziyanlovejintao.pages.dev/source/love-en.woff') format('woff');
}

body {
    display: flex;
    align-items: center;
    margin: 0;
    flex-direction: column;
    background-color: black;
    color: #ddd;
}

/* 初始状态下隐藏中文内容 */
.zh {
    display: none;
}

/* 按钮样式（可选） */
#toggleBtn,
#back {
    right: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    position: fixed;
    background-color: coral;
    border-radius: 10px;
    z-index: 100;
}

#togglenBtn {
    top: 10px;
}

#back {
    bottom: 10px;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f9f9f9;
    --header-bg: #1d8bca;
    --header-text: #ffffff;
    --hover-bg: #a1892b;
    --border-color: #ddd;
    --font-family: Arial, sans-serif;
}


table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    /* 居中表格 */
}

th,
td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 1;
}

tbody tr:hover {
    background-color: var(--hover-bg);
}

@media (max-width: 350px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    th {
        position: relative;
    }

    tr {
        margin-bottom: 15px;
    }

    td {
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
    }
}

.zh,
.en {
    width: 70%;
    max-width: 800px;
    line-height: 1.8;
    text-align: justify;
    text-indent: 4em;
 
}

.zh,
.item {
    font-family: love-zh;
}

.en {
    font-family: love-en;
}


.item {
    font-size: 30px;
}

.about {
    font-size: 12px;
    color: darkgray;
}
canvas {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}