72 lines
1.6 KiB
CSS
Raw Permalink Normal View History

body {
2025-03-27 15:45:47 +08:00
margin: 0;
font-family: "Arial", sans-serif;
/* 背景图 */
background-image: url("../blackboard/.jpg"); /* 图片地址 */
background-size: cover; /* 自动缩放并裁剪 */
background-position: center center; /* 居中裁剪 */
background-repeat: no-repeat; /* 不重复平铺 */
/* 铺满整个屏幕 */
width: 100vw;
height: 100vh;
overflow: hidden;
}
2025-03-29 21:58:38 +08:00
.main-layout {
display: flex;
flex-direction: row;
height: calc(100vh - 100px);
padding-bottom: 100px;
2025-03-29 21:58:38 +08:00
}
.left-panel, .right-panel {
width: 50%;
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
flex-direction: column; /* 内容垂直排列 */
padding: 20px;
box-sizing: border-box;
height: 100%;
2025-03-29 21:58:38 +08:00
}
.logo {
margin-top: 40px;
2025-04-19 20:27:16 +08:00
font-size: 50px;
}
2025-03-29 21:58:38 +08:00
.intro a {
display: block;
margin: 5px 0;
2025-04-05 21:06:01 +08:00
}
.logo {
font-family: 'Pacifico', cursive;
}
/* 默认隐藏 */
.mobile-toggle {
display: none;
margin: 10px;
text-align: center;
}
2025-04-14 20:23:51 +08:00
/* 全屏按钮样式(仅大屏幕显示) */
#fullscreen-button {
position: absolute;
right: 12px;
top: 7px;
background: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
transition: top 0.3s ease,transform 0.3s ease-in-out, padding 0.3s ease-in-out; /* 平滑放大动画 */
transform-origin: center center; /* 确保放大时的中心不变 */
}
#fullscreen-button:hover {
transform: scale(1.20); /* 悬停时上下左右均匀放大 20% */
}