整理静态资源结构

This commit is contained in:
lwt
2026-05-08 23:21:38 +08:00
parent 105ec0e6d1
commit 79a641d59d
10 changed files with 207 additions and 215 deletions
+74
View File
@@ -0,0 +1,74 @@
:root {
color-scheme: light;
--bg: #f5f8ff;
--panel: #ffffff;
--text: #17233d;
--muted: #63708a;
--line: #e5ebf5;
--blue: #246bfe;
--blue-dark: #1554d1;
--green: #19b982;
--shadow: 0 22px 60px rgba(57, 83, 132, 0.13);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
box-sizing: border-box;
}
html {
min-height: 100%;
scroll-behavior: smooth;
}
body {
min-width: 320px;
min-height: 100svh;
margin: 0;
color: var(--text);
background:
radial-gradient(circle at 82% 18%, rgba(36, 107, 254, 0.13), transparent 24rem),
linear-gradient(180deg, #f7fbff 0%, var(--bg) 52%, #ffffff 100%);
}
a {
color: inherit;
text-decoration: none;
}
img {
display: block;
max-width: 100%;
}
h1,
h2,
p {
margin-top: 0;
}
h1 {
max-width: 620px;
margin-bottom: 22px;
font-size: clamp(2.8rem, 6vw, 5.55rem);
line-height: 1.03;
letter-spacing: 0;
}
h2 {
margin-bottom: 0;
font-size: clamp(1.9rem, 3vw, 3rem);
line-height: 1.08;
letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}
+353
View File
@@ -0,0 +1,353 @@
.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;
}
.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;
}
}
+116
View File
@@ -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;
}
}

Before

Width:  |  Height:  |  Size: 359 KiB

After

Width:  |  Height:  |  Size: 359 KiB

Before

Width:  |  Height:  |  Size: 358 KiB

After

Width:  |  Height:  |  Size: 358 KiB

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

+15
View File
@@ -0,0 +1,15 @@
const year = document.querySelector("#year");
const header = document.querySelector("[data-header]");
if (year) {
year.textContent = new Date().getFullYear();
}
if (header) {
const updateHeader = () => {
header.classList.toggle("is-scrolled", window.scrollY > 8);
};
updateHeader();
window.addEventListener("scroll", updateHeader, { passive: true });
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB