/* styles.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.content {
    /* padding: 20px; */
    overflow-y: auto; /* 允许内容垂直滚动 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 60px); /* 减去导航栏的高度 */
}

.main {
    padding: 20px;
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .3);
}

a {
    text-decoration: none;
}

/* 底部导航栏 */
#navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    height: 40px;
    line-height: 40px;
    /* font-size: calc(0.8rem + 0.5vw); */
}

#navbar a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    display: inline-block;
}

/* 悬停颜色防止选错，但是移动端好像没有悬停功能 */
#navbar a:hover {
    background-color: #575757;
}


/* 联系方式的css */
#contact{
    background-color: #ccc;
    text-align: center;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* 全局按钮样式 */
button {
    padding: 1vw 1vw;
    font-size: calc(0.5rem + 0.5vw);
    box-shadow: 0 0 10px 0 rgba(0,0,0,.3);
}

button.disabled{
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.flex{
    display: flex;
}

.center{
    justify-content: center;
}

.vertical{
    flex-direction: column;
}

.flex {
    display: flex;
    gap: 10px;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.flex-evenly {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
}

.flex-around {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.flex-center {
    display: flex;
    justify-content: center;
    gap: 10px;
}


input {
    padding: 5px 10px;
    font-size: 15px;
}

.size0 {
    font-size: calc(2rem + 1vw);
}

.size1 {
    font-size: calc(1rem + 1vw);
}

.size2 {
    font-size: calc(1rem + 0.5vw);
}

.size3 {
    font-size: calc(0.5rem + 1vw);
}

.size4 {
    font-size: calc(0.5rem + 0.5vw);
}

.grid {
    display: grid;
}


.cover{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cover:hover::after {
    opacity: 0.16;
}

.shadow {
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.gradient {
    border: 0;
    height: 2.5px;
    background-image: linear-gradient(to right, #7bea78, #c82e2e, #231b6283);
    margin: 20px 0;
}