* {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

body {
    background-color: #f3f3f3;
}

header {
    background-color: #cb8347;
    width: 100%;
    height: 50px;
    padding: 5px 0;

    position: sticky;
    top: 0;

    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    text-align: center;
    color: white;
    /*margin-bottom: 10px;*/
}

h1 {
    font-size: 1.5em;
    font-weight: 600;
}

time {
    margin: 5px;
}

footer {
    background-color: #bb5535;
    width: 100%;
    /*height: 50px;*/
    padding: 10px;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    margin-top: 1px;
    flex-wrap: wrap;
}

main {
    display: grid;
    grid-template-columns: auto 7fr;

    /*background-color: #f3f3f3;*/
    width: min(100%, 600px);
    /* height: 300px; */
    margin: 0 auto;
}

aside {
    margin-left: 4px;
    margin-right: 4px;
}

aside>ol {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 45px repeat(13, 1fr);
    gap: 2px;

    height: 700px;
    /*background-color: #c0ebd7;*/
    text-align: center;
}

aside li {
    text-align: center;
    padding: 1px 2px;

    font-size: 10px;
}

span.num {
    font-size: small;
    font-weight: bold;
}

section#show {
    position: relative;
}

section#show>ol {
    display: grid;
    /* grid-auto-flow: column; */
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;

    height: 100%;

    text-align: center;

}

section#show>ol>li {
    display: grid;
    grid-template-rows: 45px 1fr;

    height: 700px;
}

section#show>ol>li>ol {
    display: grid;
    grid-template-rows: repeat(13, 1fr);
    gap: 2px;
    height: 655px;
}

.day>span {
    position: sticky;
    top: 60px;
    z-index: 2;
}

.background>span {
    background: linear-gradient(to bottom, #f3f3f3 90%, transparent);
    /* background-color: #f3f3f3; */
    position: sticky;
    top: 60px;
    z-index: 2;
}

.title {
    background: linear-gradient(to bottom, #f3f3f3 90%, transparent);
    /* background-color: #f3f3f3; */
    position: sticky;
    top: 60px;
    z-index: 2;
}

.day>span>span {
    margin: auto;
    font-size: small;
    font-weight: bold;
}

.date {
    font-size: small;
    font-weight: normal;
}

.today {
    background: linear-gradient(to bottom, rgba(117, 138, 153, 20%) 90%, transparent);
    /* background-color: rgba(117, 138, 153, 20%); */
}

.background {
    position: absolute;
    display: grid;
    grid-template-rows: 43px repeat(13, 1fr);
    gap: 2px;

    height: 100%;
    width: 100%;
}

.background>div {
    height: 100%;
    box-sizing: border-box;
    /*border-bottom: 1px dashed #3d3b4f;*/
    background-image: linear-gradient(to left, rgba(3, 3, 3, 20%) 50%, transparent 0);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-position: 50% 98%;

    position: relative;
    top: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.98; transform: translateY(0); }
}

.subject {
    z-index: 1;
    border-radius: 5px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);

    font-size: small;
    font-weight: bold;
    color: white;

    opacity: 0.98;
    overflow: auto;
    /*animation: fadeIn 0.5s ease-in-out;*/
}

.subject::-webkit-scrollbar {
    display: none;  /* 隐藏滚动条 */
}

.morning {
    grid-row: 1 / 6;

    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
}

.afternoon {
    grid-row: 6 / 11;

    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
}

.evening {
    grid-row: 11 / 14;

    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
}

button {
    all: unset;
}

#toImport {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(155, 68, 0, 0.6) /* #9b4400 */;
    height: 35px;
    width: 35px;
    border-radius: 25%;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.3);
}

#toImport:active {
    box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, 0.3);
}

#import {
    text-align: center;

    height: 250px;
    width: 250px;
    position: fixed;
    left: 50%;
    top: 20%;
    transform: translate(-50%);

    background-color: #e29c45;
    box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border-radius: 10%;
    display: none;
    padding: 20px;
    border: 2px solid #60281e;
}

#import>p {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: 550;
    letter-spacing: 2px;
    color: white;
}

#import>input {
    margin: 30px;
    width: 70%;
    height: 30px;

    font-size: 1.2em;
    font-style: italic;

    background-color: #ae7000;
    opacity: 80%;
}

#import>input:focus {
    outline: none;
    opacity: 100%;
}

#import>button {
    text-align: center;
    font-weight: bold;
    background-color: rgba(155, 68, 0, 0.6) /* #9b4400 */;
    height: 35px;
    width: 25%;
    border-radius: 5px;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.3);
    color: white;
}

#import>button:active {
    box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, 0.3);
}

#import>img {
    margin-top: 20px;
}

#free {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    height: 100vh;
    width: 100vw;
    z-index: 4;

    display: none;
}

#free>div {
    background-color: #f3f3f3;
    height: 50%;
    width: 60%;

    margin: min(30%, 150px) auto;
    border-radius: 10%;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.3);

    padding: 20px;
    overflow: auto;
}

#free>div::-webkit-scrollbar {
    display: none;  /* 隐藏滚动条 */
}

#free>div>table {
    width: 100%;
}

#free>div>table {
    /* border: 1px solid #ddd; */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#free>div caption {
    margin: 15px;
    font-weight: bold;
    font-size: large;
}

#free>div th {
    border-bottom: 1px solid #333;
    background-color: #464646;
    line-height: 1.6;
    color: white;
}

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

#free>div td {
    border-bottom: 1px solid #ddd;
    line-height: 1.6;
}

#freeDashboard {
    width: 100%;
    color: white;
    display: none;
    margin-bottom: 10px;
}

#freeDashboard>span:nth-child(2) {
    float: right;
}

.title>a>img {
    width: 25px;
    margin-top: 10px;
}

a#beian {
    text-decoration: none;
    color: white;
    font-size: small;
    float: right;
    margin: 5px auto;
}

/*#chat {*/
/*    height: 0;*/
/*}*/
