整理静态资源结构
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: min(1180px, calc(100% - 40px));
|
||||
min-height: 72px;
|
||||
margin: 0 auto;
|
||||
transition:
|
||||
background 180ms ease,
|
||||
border-color 180ms ease,
|
||||
box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.site-header.is-scrolled {
|
||||
width: 100%;
|
||||
padding: 0 max(20px, calc((100% - 1180px) / 2));
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
border-bottom: 1px solid rgba(229, 235, 245, 0.9);
|
||||
box-shadow: 0 10px 36px rgba(42, 67, 112, 0.08);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.hero,
|
||||
.services-section,
|
||||
.record {
|
||||
width: min(1180px, calc(100% - 40px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
|
||||
gap: clamp(34px, 6vw, 84px);
|
||||
align-items: center;
|
||||
min-height: calc(100svh - 72px);
|
||||
padding: 54px 0 74px;
|
||||
}
|
||||
|
||||
.services-section {
|
||||
padding: 10px 0 86px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.services {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.record {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
padding: 24px 0 34px;
|
||||
color: #7a8598;
|
||||
font-size: 0.88rem;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.services {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.site-header,
|
||||
.hero,
|
||||
.services-section,
|
||||
.record {
|
||||
width: min(100% - 28px, 1180px);
|
||||
}
|
||||
|
||||
.site-header {
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2.55rem, 13vw, 4rem);
|
||||
}
|
||||
|
||||
.services {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.record {
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user