Files
sumi.work/assets/css/components.css
T
2026-06-06 15:54:54 +08:00

726 lines
12 KiB
CSS

.brand,
.nav-links,
.header-actions,
.hero-actions,
.status-row,
.quick-link {
display: flex;
align-items: center;
}
.brand {
gap: 18px;
color: #26314d;
font-size: 1.55rem;
font-weight: 900;
letter-spacing: 0;
}
.brand::after {
display: block;
width: 1px;
height: 42px;
margin-left: 24px;
background: #dfe6f2;
content: "";
}
.brand-mark {
display: grid;
width: 54px;
height: 54px;
place-items: center;
color: #fff;
font-size: 1.9rem;
font-weight: 950;
background: linear-gradient(135deg, #6ea8ff, #2e82ff);
border-radius: 18px;
box-shadow: inset 0 6px 14px rgba(255, 255, 255, 0.32), 0 14px 30px rgba(35, 136, 255, 0.22);
}
.nav-links {
gap: 42px;
color: #2f3a55;
font-size: 1.08rem;
font-weight: 700;
}
.nav-links a {
position: relative;
display: inline-flex;
align-items: center;
gap: 12px;
min-height: 58px;
padding: 0 4px;
transition: color 160ms ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
color: var(--blue);
}
.nav-links a.is-active::after {
position: absolute;
right: 0;
bottom: -15px;
left: 0;
height: 4px;
background: var(--blue);
border-radius: 999px;
content: "";
}
.nav-icon {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.header-actions {
gap: 24px;
justify-content: end;
}
.quick-link {
min-height: 50px;
justify-content: center;
gap: 10px;
padding: 0 20px;
border-radius: 14px;
font-size: 1.04rem;
font-weight: 750;
transition:
transform 160ms ease,
box-shadow 160ms ease;
}
.quick-link img {
width: 18px;
height: 18px;
object-fit: contain;
}
.quick-link:hover,
.quick-link:focus-visible {
transform: translateY(-2px);
}
.quick-link.gemini {
color: #6650df;
background: rgba(119, 93, 246, 0.08);
border: 1px solid rgba(119, 93, 246, 0.25);
}
.quick-link.deepseek {
color: #126ed6;
background: rgba(35, 136, 255, 0.08);
border: 1px solid rgba(35, 136, 255, 0.24);
}
.eyebrow {
margin: 0 0 12px;
color: var(--blue);
font-size: 0.82rem;
font-weight: 900;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.subtitle {
max-width: 710px;
margin-bottom: 34px;
color: #273750;
font-size: clamp(1.1rem, 1.7vw, 1.35rem);
line-height: 1.85;
}
.hero-actions {
flex-wrap: wrap;
gap: 24px;
margin-bottom: 32px;
}
.button {
display: inline-flex;
min-height: 66px;
align-items: center;
justify-content: center;
gap: 12px;
padding: 0 44px;
border: 1px solid transparent;
border-radius: 12px;
font-size: 1.08rem;
font-weight: 850;
transition:
transform 160ms ease,
box-shadow 160ms ease,
background 160ms ease;
}
.button svg,
.button img {
width: 18px;
height: 18px;
flex: 0 0 auto;
object-fit: contain;
}
.button svg {
fill: none;
stroke: currentColor;
stroke-width: 2.2;
}
.button:hover,
.button:focus-visible {
transform: translateY(-2px);
}
.button.primary {
color: #fff;
background: var(--blue);
box-shadow: 0 16px 34px rgba(35, 136, 255, 0.28);
}
.button.primary:hover,
.button.primary:focus-visible {
background: var(--blue-dark);
}
.button.secondary {
color: #6650df;
background: rgba(255, 255, 255, 0.68);
border-color: rgba(119, 93, 246, 0.24);
}
.status-row {
width: fit-content;
gap: 10px;
padding: 13px 18px;
color: #21805e;
background: rgba(232, 255, 244, 0.88);
border: 1px solid rgba(33, 199, 137, 0.28);
border-radius: 999px;
box-shadow: 0 14px 34px rgba(33, 199, 137, 0.1);
}
.status-row strong {
color: #187050;
font-weight: 900;
}
.status-row i {
display: block;
width: 10px;
height: 10px;
background: var(--green);
border-radius: 999px;
}
.shield {
display: grid;
width: 18px;
height: 18px;
place-items: center;
color: var(--green);
}
.shield svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.hero-art {
position: relative;
min-height: 390px;
overflow: hidden;
}
.portal {
position: absolute;
right: 110px;
bottom: 24px;
width: 285px;
height: 360px;
background: linear-gradient(180deg, #d9f0ff, #9ad4ff);
border: 3px solid rgba(63, 158, 240, 0.42);
border-radius: 150px 150px 30px 30px;
box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.32), 0 30px 72px rgba(35, 136, 255, 0.18);
}
.portal::before {
position: absolute;
inset: 96px 56px 0;
background: linear-gradient(180deg, #f7fcff, #b6e2ff);
border-radius: 110px 110px 24px 24px;
content: "";
}
.portal-face {
position: absolute;
top: 72px;
left: 50%;
z-index: 1;
display: flex;
gap: 48px;
transform: translateX(-50%);
}
.portal-face span {
width: 10px;
height: 20px;
background: #26314d;
border-radius: 999px;
}
.portal-face::after {
position: absolute;
top: 28px;
left: 50%;
width: 28px;
height: 16px;
border-bottom: 4px solid #26314d;
border-radius: 0 0 999px 999px;
content: "";
transform: translateX(-50%);
}
.portal-inner {
position: absolute;
right: 88px;
bottom: 50px;
z-index: 1;
display: grid;
width: 90px;
height: 150px;
place-items: center;
background: linear-gradient(180deg, #f9fdff, #bce7ff);
border-radius: 80px 80px 20px 20px;
}
.arrow {
color: #68bdf1;
font-size: 3rem;
font-weight: 900;
}
.road {
position: absolute;
right: 110px;
bottom: -20px;
width: 270px;
height: 120px;
background: linear-gradient(105deg, transparent 20%, #f6fbff 21% 42%, #fedb9b 43% 49%, #f6fbff 50% 72%, transparent 73%);
border-radius: 50%;
}
.cloud {
position: absolute;
background: rgba(255, 255, 255, 0.82);
border: 2px solid rgba(131, 195, 245, 0.42);
border-radius: 999px;
}
.cloud::before,
.cloud::after {
position: absolute;
background: inherit;
border: inherit;
border-radius: inherit;
content: "";
}
.cloud-one {
top: 64px;
left: 140px;
width: 92px;
height: 34px;
}
.cloud-one::before {
top: -24px;
left: 10px;
width: 34px;
height: 34px;
}
.cloud-one::after {
top: -12px;
left: 42px;
width: 32px;
height: 32px;
}
.cloud-two {
right: 10px;
bottom: 138px;
width: 100px;
height: 38px;
}
.cloud-two::before {
top: -22px;
left: 18px;
width: 38px;
height: 38px;
}
.cloud-two::after {
top: -12px;
left: 56px;
width: 34px;
height: 34px;
}
.star {
position: absolute;
color: #ffc54d;
font-size: 2rem;
text-shadow: 0 4px 12px rgba(255, 197, 77, 0.3);
}
.star-one {
top: 120px;
left: 130px;
}
.star-two {
top: 42px;
right: 78px;
}
.dot {
position: absolute;
width: 10px;
height: 10px;
border: 2px solid #7cc8ff;
border-radius: 999px;
}
.dot-one {
top: 80px;
left: 95px;
}
.dot-two {
right: 36px;
top: 160px;
}
.bush {
position: absolute;
bottom: 36px;
width: 118px;
height: 70px;
background: #c5f0b6;
border: 3px solid rgba(103, 196, 111, 0.42);
border-radius: 80px 80px 28px 28px;
}
.bush::before,
.bush::after {
position: absolute;
width: 10px;
height: 16px;
background: #26314d;
border-radius: 999px;
content: "";
}
.bush::before {
top: 28px;
left: 44px;
}
.bush::after {
top: 28px;
right: 44px;
}
.bush-left {
left: 145px;
}
.bush-right {
right: 30px;
bottom: 10px;
width: 74px;
height: 114px;
background:
radial-gradient(ellipse at 50% 18%, #b8ed9b 0 24%, transparent 25%),
radial-gradient(ellipse at 25% 54%, #9ee285 0 21%, transparent 22%),
radial-gradient(ellipse at 76% 54%, #8dd97c 0 22%, transparent 23%);
border: 0;
}
.bush-right::before,
.bush-right::after {
display: none;
}
.section-heading h2 {
display: flex;
align-items: center;
gap: 14px;
}
.section-heading h2 span {
display: inline-block;
width: 6px;
height: 30px;
background: var(--blue);
border-radius: 999px;
}
.section-heading h2 i {
color: var(--blue);
font-style: normal;
}
.section-note {
margin-bottom: 0;
color: var(--muted);
font-size: 1rem;
line-height: 1.7;
}
.dot-matrix {
width: 48px;
height: 48px;
flex: 0 0 auto;
background-image: radial-gradient(circle, rgba(35, 136, 255, 0.68) 2px, transparent 3px);
background-size: 14px 14px;
}
.service-card {
position: relative;
display: flex;
min-height: 290px;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 28px 20px;
text-align: center;
background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(244, 250, 255, 0.78));
border: 1px solid rgba(151, 198, 245, 0.38);
border-radius: 20px;
box-shadow: 0 18px 42px rgba(38, 57, 96, 0.1);
transition:
transform 180ms ease,
border-color 180ms ease,
box-shadow 180ms ease;
}
.service-card::before {
position: absolute;
right: -32px;
bottom: -26px;
width: 98px;
height: 74px;
background:
radial-gradient(circle at 20% 78%, #effaff 0 28%, transparent 29%),
radial-gradient(circle at 44% 58%, #effaff 0 35%, transparent 36%),
radial-gradient(circle at 74% 75%, #effaff 0 30%, transparent 31%);
content: "";
}
.service-card::after {
position: absolute;
inset: 12px;
pointer-events: none;
border-radius: 16px;
content: "";
}
.service-card:hover,
.service-card:focus-visible {
transform: translateY(-8px);
border-color: rgba(35, 136, 255, 0.42);
box-shadow: 0 28px 62px rgba(38, 57, 96, 0.16);
outline: none;
}
.service-icon {
display: grid;
width: 112px;
height: 112px;
place-items: center;
margin-bottom: 20px;
color: var(--blue);
background:
radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 42%, transparent 43%),
rgba(255, 255, 255, 0.64);
border: 12px solid rgba(255, 255, 255, 0.72);
border-radius: 999px;
box-shadow: 0 14px 28px rgba(38, 57, 96, 0.12);
font-size: 2.4rem;
font-weight: 900;
}
.service-icon img {
width: 58px;
height: 58px;
object-fit: contain;
}
.card-blue .service-icon img {
width: 64px;
height: 64px;
}
.card-purple .service-icon img {
width: 62px;
height: 62px;
}
.card-deepseek .service-icon img {
width: 56px;
height: 56px;
border-radius: 12px;
}
.card-jenkins .service-icon img {
width: 54px;
height: 74px;
}
.service-title {
color: #14213c;
font-size: 1.5rem;
font-weight: 950;
}
.service-desc {
margin-top: 6px;
color: #6b7285;
font-size: 1rem;
line-height: 1.55;
}
.arrow-button {
display: grid;
width: 42px;
height: 42px;
place-items: center;
margin-top: 20px;
color: currentColor;
background: rgba(255, 255, 255, 0.64);
border: 1px solid currentColor;
border-radius: 999px;
font-size: 1.25rem;
font-weight: 900;
}
.card-blue {
color: var(--blue);
}
.card-orange {
color: var(--orange);
border-color: rgba(240, 120, 69, 0.32);
background: linear-gradient(145deg, #fffaf5, #fff4e8);
}
.card-green {
color: #16a99a;
border-color: rgba(33, 199, 137, 0.32);
background: linear-gradient(145deg, #f7fffb, #eefcf6);
}
.card-jenkins {
color: #d33a33;
border-color: rgba(211, 58, 51, 0.3);
background: linear-gradient(145deg, #fffafa, #fff0f0);
}
.card-purple {
color: var(--purple);
border-color: rgba(119, 93, 246, 0.3);
background: linear-gradient(145deg, #fbf9ff, #f5f1ff);
}
.card-deepseek {
color: #237fe8;
background: linear-gradient(145deg, #f7fbff, #eef7ff);
}
@media (max-width: 1180px) {
.brand::after {
display: none;
}
.nav-links,
.header-actions {
justify-content: center;
}
}
@media (max-width: 640px) {
.brand {
font-size: 1.35rem;
}
.nav-links,
.header-actions {
flex-wrap: wrap;
gap: 10px;
}
h1 {
font-size: clamp(2.7rem, 12vw, 4.2rem);
}
.button,
.quick-link {
width: 100%;
}
.hero-actions,
.status-row {
width: 100%;
}
.hero-art {
min-height: 260px;
}
.portal {
right: 18px;
width: 210px;
height: 270px;
transform: scale(0.86);
transform-origin: right bottom;
}
.cloud-one,
.star-one,
.dot-one,
.bush-left {
display: none;
}
.section-heading {
gap: 16px;
}
.dot-matrix {
display: none;
}
.service-card {
min-height: 250px;
}
}