fix: 网站整体样式大改版。
This commit is contained in:
@@ -2,208 +2,226 @@
|
||||
|
||||
.@{prefix}-header {
|
||||
width: 100%;
|
||||
height: 70px;
|
||||
background: rgba(255,255,255,0.95);
|
||||
backdrop-filter: saturate(180%) blur(12px);
|
||||
box-shadow: 0 4px 14px rgba(16,24,40,0.08);
|
||||
height: 76px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
.float-clear;
|
||||
.@{prefix}-logo{
|
||||
width: 300px;
|
||||
height: 70px;
|
||||
margin: 0 0 0 10px;
|
||||
float: left;
|
||||
color: #e8fbff;
|
||||
background:
|
||||
radial-gradient(circle at 18% 0%, rgba(70, 219, 255, .12), transparent 30%),
|
||||
linear-gradient(180deg, #061321 0%, #020812 100%);
|
||||
border-bottom: 1px solid rgba(91, 226, 255, .14);
|
||||
box-shadow: 0 16px 46px rgba(0, 0, 0, .28);
|
||||
backdrop-filter: blur(12px);
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(85, 228, 255, .82), transparent);
|
||||
opacity: .36;
|
||||
}
|
||||
.@{prefix}-logo-text{
|
||||
float: left;
|
||||
height: 70px;
|
||||
color: #36A4BB;
|
||||
font-size: 16px;
|
||||
line-height: 70px;
|
||||
text-align: center;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(91, 226, 255, .024) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(91, 226, 255, .024) 1px, transparent 1px);
|
||||
background-size: 44px 44px;
|
||||
opacity: .36;
|
||||
}
|
||||
|
||||
.@{prefix}-header__inner {
|
||||
width: calc(100% - 44px);
|
||||
max-width: 1240px;
|
||||
height: 76px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.@{prefix}-brand-mark {
|
||||
width: 232px;
|
||||
height: 62px;
|
||||
margin: 0;
|
||||
flex: 0 0 auto;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
transition: transform .24s ease;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-logo {
|
||||
width: 232px;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(113, 239, 255, .38));
|
||||
opacity: 1;
|
||||
transition: filter .24s ease, opacity .24s ease, transform .24s ease;
|
||||
|
||||
&:hover {
|
||||
filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(113, 239, 255, .52));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-logo-text {
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.@{prefix}-logo-text a{
|
||||
color: var(--color-text);
|
||||
|
||||
.@{prefix}-logo-text a {
|
||||
position: relative;
|
||||
height: 38px;
|
||||
padding: 0 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: #c7eef6;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 38px;
|
||||
text-decoration: none;
|
||||
margin: 0;
|
||||
padding: 12px 22px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
background: rgba(102, 126, 234, 0.08);
|
||||
border-radius: 10px;
|
||||
transition: all 0.3s ease;
|
||||
display: inline-block;
|
||||
line-height: 1.4;
|
||||
border: 1px solid transparent;
|
||||
white-space: nowrap;
|
||||
border: 1px solid rgba(105, 226, 255, .26);
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(180deg, rgba(15, 49, 74, .64), rgba(5, 21, 39, .72));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, .08),
|
||||
0 10px 24px rgba(0, 0, 0, .12);
|
||||
transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-right: 8px;
|
||||
border-radius: 50%;
|
||||
background: #48e1ff;
|
||||
box-shadow: 0 0 12px rgba(72, 225, 255, .9);
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
bottom: 4px;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(122, 243, 255, .65), transparent);
|
||||
opacity: 0;
|
||||
transition: opacity .22s ease;
|
||||
}
|
||||
}
|
||||
.@{prefix}-logo-text a:hover{
|
||||
color: #667eea;
|
||||
background: rgba(102, 126, 234, 0.15);
|
||||
border-color: rgba(102, 126, 234, 0.2);
|
||||
|
||||
.@{prefix}-logo-text a:hover {
|
||||
color: #fff;
|
||||
border-color: rgba(122, 243, 255, .7);
|
||||
background: linear-gradient(180deg, rgba(20, 75, 105, .78), rgba(7, 33, 57, .88));
|
||||
text-decoration: none;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
|
||||
box-shadow: 0 12px 30px rgba(25, 187, 226, .14);
|
||||
|
||||
&:after {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.@{prefix}-button{
|
||||
float: right;
|
||||
line-height: 40px;
|
||||
|
||||
.@{prefix}-header__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.@{prefix}-button {
|
||||
margin: 0;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.@{prefix}-rightcol {
|
||||
width: 46px;
|
||||
height: 40px;
|
||||
margin: 15px 8px 0 0;
|
||||
min-width: 90px;
|
||||
}
|
||||
.@{prefix}-rightcol{
|
||||
margin-left: auto;
|
||||
display: none;
|
||||
}
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
border: 1px solid rgba(105, 226, 255, .36);
|
||||
border-radius: 8px;
|
||||
background: rgba(10, 36, 58, .78);
|
||||
box-shadow: 0 0 24px rgba(72, 225, 255, .16);
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
.@{prefix}-logo-line {
|
||||
width: 1px;
|
||||
height: 35px;
|
||||
top: 18px;
|
||||
left: 10px;
|
||||
float: left;
|
||||
position: relative;
|
||||
background: #32adc6;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) and (min-width: 769px) {
|
||||
.@{prefix}-header{
|
||||
.@{prefix}-logo-text{
|
||||
display: none !important;
|
||||
}
|
||||
.@{prefix}-rightcol{
|
||||
display: flex !important;
|
||||
span {
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
display: block;
|
||||
background: #dffbff;
|
||||
box-shadow: 0 0 10px rgba(72, 225, 255, .7);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
.@{prefix}-header{
|
||||
.@{prefix}-rightcol{
|
||||
display: none !important;
|
||||
@media (max-width: 1120px) {
|
||||
.@{prefix}-header {
|
||||
.@{prefix}-logo-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.@{prefix}-rightcol {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.@{prefix}-header{
|
||||
height: 100px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
padding: 10px 0;
|
||||
background: rgba(255,255,255,0.98);
|
||||
box-shadow: 0 2px 12px rgba(16,24,40,0.1);
|
||||
.zui-logo{
|
||||
height: 45px;
|
||||
width: 200px;
|
||||
max-width: calc(100% - 100px);
|
||||
margin: 0 0 0 12px;
|
||||
order: 1;
|
||||
.@{prefix}-header {
|
||||
height: 88px;
|
||||
|
||||
.@{prefix}-header__inner {
|
||||
width: calc(100% - 28px);
|
||||
height: 88px;
|
||||
gap: 12px;
|
||||
}
|
||||
.@{prefix}-logo-text{
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
padding: 0 12px;
|
||||
order: 3;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
a {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 7px 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
border: 1px solid rgba(102, 126, 234, 0.15);
|
||||
}
|
||||
a:hover, a:active {
|
||||
background: rgba(102, 126, 234, 0.2);
|
||||
color: #667eea;
|
||||
border-color: rgba(102, 126, 234, 0.3);
|
||||
text-decoration: none;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.@{prefix}-brand-mark {
|
||||
width: 202px;
|
||||
height: 58px;
|
||||
}
|
||||
.@{prefix}-button{
|
||||
display: none !important;
|
||||
|
||||
.@{prefix}-logo {
|
||||
width: 202px;
|
||||
height: auto;
|
||||
}
|
||||
.@{prefix}-rightcol{
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 13px;
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
margin: 5px 12px 0 auto;
|
||||
min-width: 70px;
|
||||
padding: 0 16px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
order: 2;
|
||||
box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::before {
|
||||
content: '\2630'; // 汉堡菜单图标
|
||||
margin-right: 6px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
.@{prefix}-rightcol:active {
|
||||
background: linear-gradient(135deg, #5a6fd9 0%, #684094 100%);
|
||||
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
|
||||
transform: scale(0.96);
|
||||
}
|
||||
.@{prefix}-logo-line {
|
||||
|
||||
.@{prefix}-header__actions {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user