style(welcome): 优化移动端响应式布局和样式细节

This commit is contained in:
augushong
2026-01-23 22:11:06 +08:00
parent 6eefa1cd2e
commit 96eaa269a1

View File

@@ -10,7 +10,6 @@ p {
}
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
@@ -757,20 +756,116 @@ footer a {
}
}
@media (max-width:768px) {
@media (max-width: 768px) {
/* Header adjustments */
header {
padding: 10px;
padding: 10px 15px;
flex-direction: column;
align-items: center;
}
.logo-box {
width: 100%;
justify-content: center;
margin-bottom: 10px;
}
header .right {
width: 100%;
justify-content: center;
flex-direction: column;
}
.navbar {
margin-right: 0;
width: 100%;
justify-content: center;
flex-wrap: wrap;
padding: 5px 0;
}
.navbar-item {
margin: 5px 10px !important;
font-size: 14px;
}
.github-btns {
margin-top: 10px;
display: flex;
justify-content: center;
}
/* Hero Section */
.home-main {
margin-top: 40px;
}
.title {
padding-bottom: 60px;
}
.title .logo {
width: 80px;
height: 104px; /* Maintain aspect ratio approx */
margin-bottom: 30px;
background-size: contain;
}
.title .name {
width: 200px;
height: 200px;
background-size: contain;
}
.title .desc {
font-size: 16px;
line-height: 26px;
padding: 0 20px;
margin-bottom: 30px;
}
.title .operation {
flex-direction: column;
gap: 15px;
}
.title .operation button,
.title .operation a {
margin-left: 0;
width: 80%;
max-width: 300px;
}
/* Introduction Section */
.introduction {
padding: 40px 15px 60px;
}
.part-title .text {
font-size: 24px;
}
.introduction .bottom {
margin-top: 40px;
}
.introduction .bottom .item {
width: 80%;
width: 100%;
margin: 15px 0;
}
.footer-nav-box {
width: 95%;
/* Footer */
footer {
flex-direction: column;
padding: 30px 15px;
height: auto;
}
.footer-proto-box {
width: 95%;
footer .container {
text-align: center;
}
.footer-nav-box, .footer-proto-box {
width: 100%;
}
}