Files
sumi.work/assets/css/components.css
T
2026-05-08 23:22:55 +08:00

363 lines
6.3 KiB
CSS

.brand,
.nav-links,
.hero-actions,
.status-row {
display: flex;
align-items: center;
}
.brand {
gap: 10px;
color: #14233f;
font-size: 1.04rem;
font-weight: 850;
}
.brand-mark {
display: grid;
width: 34px;
height: 34px;
place-items: center;
color: #fff;
background: linear-gradient(135deg, var(--blue), #48a8ff);
border-radius: 9px;
box-shadow: 0 10px 24px rgba(36, 107, 254, 0.24);
}
.nav-links {
gap: 30px;
color: #3f4b62;
font-size: 0.95rem;
font-weight: 650;
}
.nav-links a,
.record a {
transition: color 160ms ease;
}
.record-note {
max-width: 720px;
margin: 0;
color: #98a3b7;
font-size: 0.78rem;
line-height: 1.7;
text-align: center;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.record a:hover,
.record a:focus-visible {
color: var(--blue);
}
.eyebrow {
margin: 0 0 12px;
color: var(--blue);
font-size: 0.78rem;
font-weight: 850;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.subtitle {
max-width: 580px;
margin-bottom: 30px;
color: var(--muted);
font-size: clamp(1.06rem, 1.6vw, 1.24rem);
line-height: 1.8;
}
.hero-actions {
flex-wrap: wrap;
gap: 14px;
margin-bottom: 28px;
}
.button {
display: inline-flex;
min-height: 48px;
align-items: center;
justify-content: center;
padding: 0 22px;
border: 1px solid transparent;
border-radius: 8px;
font-weight: 800;
transition:
transform 160ms ease,
box-shadow 160ms ease,
background 160ms ease;
}
.button:hover,
.button:focus-visible {
transform: translateY(-2px);
}
.button.primary {
color: #fff;
background: var(--blue);
box-shadow: 0 14px 30px rgba(36, 107, 254, 0.24);
}
.button.primary:hover,
.button.primary:focus-visible {
background: var(--blue-dark);
}
.button.secondary {
color: var(--blue);
background: #fff;
border-color: #dbe6ff;
}
.status-row {
width: fit-content;
gap: 9px;
padding: 10px 14px;
color: #2f456b;
background: rgba(255, 255, 255, 0.8);
border: 1px solid #dce7f8;
border-radius: 999px;
box-shadow: 0 12px 32px rgba(57, 83, 132, 0.08);
}
.status-row strong {
color: #143055;
font-weight: 850;
}
.status-dot {
width: 10px;
height: 10px;
background: var(--green);
border-radius: 999px;
box-shadow: 0 0 0 6px rgba(25, 185, 130, 0.13);
}
.hero-visual {
position: relative;
min-height: 460px;
overflow: hidden;
background: var(--panel);
border: 1px solid rgba(222, 232, 248, 0.9);
border-radius: 28px;
box-shadow: var(--shadow);
}
.hero-visual::after {
position: absolute;
inset: 0;
background:
linear-gradient(90deg, rgba(9, 34, 74, 0.38), rgba(9, 34, 74, 0.02) 58%),
linear-gradient(180deg, transparent 48%, rgba(6, 24, 56, 0.42));
content: "";
}
.hero-visual img {
width: 100%;
height: 100%;
min-height: 460px;
object-fit: cover;
}
.visual-overlay {
position: absolute;
right: 24px;
bottom: 24px;
left: 24px;
z-index: 1;
padding: 20px;
color: #fff;
background: rgba(17, 35, 66, 0.68);
border: 1px solid rgba(255, 255, 255, 0.24);
border-radius: 20px;
box-shadow: 0 24px 54px rgba(10, 31, 68, 0.24);
backdrop-filter: blur(18px);
}
.overlay-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
color: rgba(255, 255, 255, 0.82);
font-weight: 780;
}
.overlay-heading strong {
color: #48f0aa;
}
.overlay-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.overlay-grid span {
display: inline-flex;
min-height: 36px;
align-items: center;
justify-content: center;
padding: 0 10px;
color: rgba(255, 255, 255, 0.92);
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 10px;
font-size: 0.84rem;
font-weight: 800;
}
.section-note {
max-width: 420px;
margin-bottom: 0;
color: var(--muted);
line-height: 1.7;
text-align: right;
}
.service-card {
position: relative;
display: block;
min-height: 280px;
overflow: hidden;
background: #0f1d34;
border: 1px solid var(--line);
border-radius: 20px;
box-shadow: 0 18px 42px rgba(38, 57, 96, 0.16);
transition:
transform 180ms ease,
border-color 180ms ease,
box-shadow 180ms ease;
}
.service-card::before {
position: absolute;
inset: 0;
z-index: 1;
background:
linear-gradient(180deg, rgba(8, 21, 44, 0.02) 12%, rgba(8, 21, 44, 0.42) 54%, rgba(8, 21, 44, 0.9) 100%),
linear-gradient(135deg, rgba(36, 107, 254, 0.24), transparent 54%);
content: "";
}
.service-card:hover,
.service-card:focus-visible {
transform: translateY(-8px);
border-color: rgba(36, 107, 254, 0.28);
box-shadow: 0 28px 62px rgba(38, 57, 96, 0.2);
outline: none;
}
.service-card:hover img,
.service-card:focus-visible img {
transform: scale(1.06);
}
.service-card img {
width: 100%;
height: 100%;
min-height: 280px;
object-fit: cover;
transition: transform 260ms ease;
}
.service-content {
position: absolute;
inset: auto 0 0;
z-index: 2;
display: flex;
min-height: 55%;
flex-direction: column;
justify-content: flex-end;
padding: 22px;
color: #fff;
}
.service-icon {
display: inline-flex;
width: fit-content;
min-width: 48px;
min-height: 36px;
align-items: center;
justify-content: center;
padding: 0 12px;
margin-bottom: auto;
color: #fff;
background: rgba(255, 255, 255, 0.18);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 999px;
font-size: 0.82rem;
font-weight: 900;
backdrop-filter: blur(12px);
}
.service-title {
margin-top: 74px;
color: #fff;
font-size: 1.18rem;
font-weight: 900;
}
.service-desc {
margin-top: 8px;
color: rgba(255, 255, 255, 0.78);
font-size: 0.94rem;
line-height: 1.55;
}
@media (max-width: 960px) {
.hero-visual,
.hero-visual img {
min-height: 390px;
}
.section-note {
text-align: left;
}
}
@media (max-width: 560px) {
.button {
width: 100%;
}
.status-row {
align-items: flex-start;
flex-direction: column;
border-radius: 14px;
}
.hero-visual {
min-height: auto;
border-radius: 22px;
}
.hero-visual img {
min-height: 360px;
}
.visual-overlay {
right: 14px;
bottom: 14px;
left: 14px;
padding: 16px;
}
.overlay-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overlay-grid span {
min-height: 34px;
}
.service-card,
.service-card img {
min-height: 230px;
}
}