:root {
    --bg: #fff;
    --bk: #ddd;
    --textcolor: ##000;
}
.dark {
    --bg: #111;
    --bk: #333;
    --textcolor: #777;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
p {
    cursor: default;
    color: var(--textcolor);
}
.header {
    background-color: var(--bg);
    height: 50px;
    border-bottom: 1px solid var(--bk);
    border-right: 1px solid var(--bk);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    right: 70vw;
    left: 0;
}
.menuicon {
    fill: var(--textcolor);
    width: 30px;
    height: 30px;
}
.icon {
    width: 40px;
    height: 40px;
    margin: 5px;
}
.fullscreenicon{
    margin-left: auto;
    margin-right: 10px;
    fill: var(--textcolor);
    width: 30px;
    height: 30px;
}
.main {
    background-color: var(--bg);
    padding: 10px;
    padding-bottom: 90px;
    width: 70vw;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 30vw;
    overflow-y: auto; /* 垂直滚动 */
    color: var(--textcolor);
}
.aside {
    background-color: var(--bg);
    border-right: 1px solid var(--bk);
    color: var(--textcolor);
    padding: 10px;
    width: 30vw;
    height: calc(100dvh - 50px);
    position: fixed;
    top: 50px;
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .header {
        right: 0;
    }
    .main {
        width: 100vw;
        height: calc(100dvh - 50px);
        top: 50px;
        left: 0;
    }
    .aside {
        width: 70vw;
        transform: translateX(-100%);
    }
    .aside.active {
        transform: translateX(0);
    }
}
@media (min-width: 769px) {
    .menuicon {
        display: none;
    }
}
.theme {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--bk);
}
.themeitem {
    height: 30px;
    flex: 1;
    display: flex;
    align-items: center; 
    justify-content: center;
    border-radius: 10px;
}
.themeitem:hover {
    background-color: var(--bk);
}
.themeitem.click {
    background-color: var(--bk);
}
.themeicon {
    width: 20px;
    height: 20px;
    fill: var(--textcolor);
}
.search{
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    height: 30px;
    border-radius: 10px;
    background-color: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--bk);
    align-items: center;
}
.search_icon {
    width: 1em;
    height: 1em;
    margin-left: 5px;
    fill: #777;
}
.search_input{
    
    border: none;
    background: none;
    padding: 5px;
    outline: none;
    color: var(--textcolor);
    flex: 1;
}
.doc{
    overflow-y: auto; /* 垂直滚动 */
    width: 100%;
    padding-bottom: 60px;
    height: calc(100dvh - 140px );
}
