459 lines
7.5 KiB
CSS
459 lines
7.5 KiB
CSS
@import "@fontsource-variable/noto-sans-sc";
|
|
|
|
:root {
|
|
font-family:
|
|
"Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
color: #202936;
|
|
background: #f4f7fb;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
--platform: #1265e8;
|
|
--station: #dc7100;
|
|
--delivery: #078e89;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
min-width: 320px;
|
|
background: #f4f7fb;
|
|
}
|
|
|
|
body {
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
color: #202936;
|
|
background: #f4f7fb;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
button,
|
|
a {
|
|
font: inherit;
|
|
}
|
|
|
|
#root,
|
|
.site-shell {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.site-shell {
|
|
display: grid;
|
|
grid-template-rows: auto clamp(420px, 58vh, 540px) auto;
|
|
align-content: start;
|
|
gap: clamp(8px, 1.2vh, 12px);
|
|
width: min(100%, 1440px);
|
|
margin: 0 auto;
|
|
padding: clamp(16px, 2.2vh, 26px) clamp(24px, 4.5vw, 68px)
|
|
clamp(18px, 2.4vh, 28px);
|
|
}
|
|
|
|
.site-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
color: #17212d;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand img {
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.brand__name {
|
|
font-weight: 700;
|
|
font-size: 29px;
|
|
line-height: 1;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.brand-slogan {
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
gap: 2px 9px;
|
|
align-items: center;
|
|
color: #27394e;
|
|
text-align: right;
|
|
}
|
|
|
|
.brand-slogan svg {
|
|
grid-row: 1 / 3;
|
|
color: var(--platform);
|
|
}
|
|
|
|
.brand-slogan strong {
|
|
font-size: 15px;
|
|
line-height: 21px;
|
|
}
|
|
|
|
.brand-slogan span {
|
|
color: #7b8796;
|
|
font-size: 11px;
|
|
line-height: 17px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.banner {
|
|
position: relative;
|
|
min-height: 420px;
|
|
overflow: hidden;
|
|
background: #dfe8f4;
|
|
border: 1px solid rgba(103, 126, 154, 0.14);
|
|
border-radius: 22px;
|
|
box-shadow: 0 22px 60px rgba(44, 66, 92, 0.12);
|
|
}
|
|
|
|
.banner__track {
|
|
display: flex;
|
|
height: 100%;
|
|
transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.banner__slide {
|
|
position: relative;
|
|
min-width: 100%;
|
|
min-height: 420px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.banner__slide img,
|
|
.banner__shade {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.banner__slide img {
|
|
object-fit: cover;
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.banner__shade {
|
|
background:
|
|
linear-gradient(90deg, rgba(12, 27, 47, 0.74) 0%, rgba(14, 36, 65, 0.42) 40%, rgba(17, 40, 65, 0.04) 72%),
|
|
linear-gradient(0deg, rgba(8, 27, 48, 0.16), transparent 55%);
|
|
}
|
|
|
|
.banner__copy {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
width: min(54%, 650px);
|
|
height: 100%;
|
|
min-height: 420px;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: clamp(34px, 5vw, 74px);
|
|
color: #fff;
|
|
}
|
|
|
|
.banner__copy p {
|
|
margin: 0 0 11px;
|
|
color: #bcd8ff;
|
|
font-weight: 650;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
letter-spacing: 0.16em;
|
|
}
|
|
|
|
.banner__copy h1 {
|
|
margin: 0;
|
|
font-weight: 700;
|
|
font-size: clamp(30px, 3.2vw, 46px);
|
|
line-height: 1.22;
|
|
letter-spacing: 0.025em;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.banner__copy span {
|
|
max-width: 520px;
|
|
margin-top: 17px;
|
|
color: rgba(255, 255, 255, 0.82);
|
|
font-size: clamp(14px, 1.25vw, 17px);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.banner__dots {
|
|
position: absolute;
|
|
bottom: 24px;
|
|
left: clamp(34px, 5vw, 74px);
|
|
z-index: 2;
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.banner__dots button {
|
|
width: 24px;
|
|
height: 4px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
background: rgba(255, 255, 255, 0.46);
|
|
border: 0;
|
|
border-radius: 999px;
|
|
transition:
|
|
width 180ms ease,
|
|
background-color 180ms ease;
|
|
}
|
|
|
|
.banner__dots button.is-active {
|
|
width: 48px;
|
|
background: #fff;
|
|
}
|
|
|
|
.banner__dots button:focus-visible {
|
|
outline: 3px solid rgba(255, 255, 255, 0.55);
|
|
outline-offset: 4px;
|
|
}
|
|
|
|
.site-footer {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.footer-heading {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.footer-heading p,
|
|
.footer-heading h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.footer-heading p {
|
|
color: #8793a3;
|
|
font-weight: 650;
|
|
font-size: 10px;
|
|
line-height: 16px;
|
|
letter-spacing: 0.17em;
|
|
}
|
|
|
|
.footer-heading h2 {
|
|
margin-top: 2px;
|
|
color: #253244;
|
|
font-weight: 680;
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.footer-heading > span {
|
|
display: inline-flex;
|
|
gap: 7px;
|
|
align-items: center;
|
|
color: #7d8998;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.portal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.portal {
|
|
--accent: var(--platform);
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
gap: 15px;
|
|
align-items: center;
|
|
min-width: 0;
|
|
min-height: 92px;
|
|
padding: 17px 18px;
|
|
color: inherit;
|
|
background: #fff;
|
|
border: 1px solid rgba(93, 117, 145, 0.14);
|
|
border-radius: 14px;
|
|
box-shadow: 0 9px 24px rgba(48, 68, 91, 0.06);
|
|
text-decoration: none;
|
|
outline: none;
|
|
transition:
|
|
border-color 180ms ease,
|
|
box-shadow 180ms ease,
|
|
transform 180ms ease;
|
|
}
|
|
|
|
.portal--station {
|
|
--accent: var(--station);
|
|
}
|
|
|
|
.portal--delivery {
|
|
--accent: var(--delivery);
|
|
}
|
|
|
|
.portal:hover,
|
|
.portal:focus-visible {
|
|
border-color: color-mix(in srgb, var(--accent) 38%, transparent);
|
|
box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 13%, transparent);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.portal:focus-visible {
|
|
box-shadow:
|
|
0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
|
|
0 14px 34px color-mix(in srgb, var(--accent) 13%, transparent);
|
|
}
|
|
|
|
.portal__number {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 28px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.portal__content {
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: 4px;
|
|
}
|
|
|
|
.portal__content strong {
|
|
color: #253244;
|
|
font-size: 17px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.portal__content small {
|
|
overflow: hidden;
|
|
color: #7b8796;
|
|
font-size: 11px;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.portal__action {
|
|
display: inline-flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.site-shell {
|
|
grid-template-rows: auto clamp(380px, 52vh, 480px) auto;
|
|
}
|
|
|
|
.banner__copy {
|
|
width: 64%;
|
|
}
|
|
|
|
.portal {
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.portal__action {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.site-shell {
|
|
display: flex;
|
|
min-height: 100dvh;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 16px 16px 20px;
|
|
}
|
|
|
|
.brand img {
|
|
width: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
.brand__name {
|
|
font-size: 23px;
|
|
}
|
|
|
|
.brand-slogan {
|
|
display: flex;
|
|
gap: 7px;
|
|
}
|
|
|
|
.brand-slogan strong {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.brand-slogan span {
|
|
display: none;
|
|
}
|
|
|
|
.banner,
|
|
.banner__slide,
|
|
.banner__copy {
|
|
min-height: 460px;
|
|
}
|
|
|
|
.banner {
|
|
border-radius: 17px;
|
|
}
|
|
|
|
.banner__slide img {
|
|
object-position: center center !important;
|
|
}
|
|
|
|
.banner__shade {
|
|
background: linear-gradient(0deg, rgba(10, 28, 49, 0.82) 0%, rgba(13, 34, 58, 0.32) 72%, rgba(13, 34, 58, 0.08) 100%);
|
|
}
|
|
|
|
.banner__copy {
|
|
width: 100%;
|
|
justify-content: end;
|
|
padding: 36px 26px 62px;
|
|
}
|
|
|
|
.banner__copy h1 {
|
|
font-size: clamp(29px, 9vw, 38px);
|
|
}
|
|
|
|
.banner__copy span {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.banner__dots {
|
|
bottom: 25px;
|
|
left: 26px;
|
|
}
|
|
|
|
.footer-heading > span {
|
|
display: none;
|
|
}
|
|
|
|
.portal-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.portal {
|
|
min-height: 82px;
|
|
padding: 15px 17px;
|
|
}
|
|
|
|
.portal:hover {
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.banner__track,
|
|
.banner__dots button,
|
|
.portal {
|
|
transition: none;
|
|
}
|
|
}
|