项目文件夹

文件

325 行
7.5 KiB
CSS

:root {
--bg: #0a0a12;
--bg-soft: #12121f;
--surface: #1a1a2e;
--surface-hi: #22223a;
--text: #e8e8f0;
--text-soft: #a0a0b8;
--text-mute: #6a6a85;
--accent: #6c5ce7;
--accent-hi: #a29bfe;
--accent-glow: rgba(108, 92, 231, 0.35);
--positive: #00b894;
--challenge: #e17055;
--border: rgba(255, 255, 255, 0.08);
--maxw: 1080px;
--sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: var(--sans);
color: var(--text);
background: var(--bg);
line-height: 1.7;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
/* nav */
.nav {
position: sticky;
top: 0;
z-index: 50;
max-width: var(--maxw);
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(10, 10, 18, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.brand {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 700;
font-size: 1.15rem;
}
.brand-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
background: linear-gradient(135deg, var(--accent), var(--accent-hi));
font-size: 0.8rem;
font-weight: 800;
color: #fff;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
font-size: 0.9rem;
color: var(--text-soft);
transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-hi); }
/* hero */
.hero {
position: relative;
max-width: var(--maxw);
margin: 0 auto;
padding: 6rem 2rem 5rem;
text-align: center;
overflow: hidden;
}
.hero-glow {
position: absolute;
top: -100px;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: radial-gradient(circle, var(--accent-glow), transparent 70%);
filter: blur(60px);
pointer-events: none;
}
.hero-title {
position: relative;
font-size: clamp(2.2rem, 5vw, 3.6rem);
font-weight: 800;
line-height: 1.2;
margin: 0 0 1.2rem;
}
.hero-title span {
background: linear-gradient(135deg, var(--accent-hi), #dfe6e9);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-sub {
position: relative;
font-size: 1.05rem;
color: var(--text-soft);
max-width: 620px;
margin: 0 auto 2rem;
}
.hero-cta {
position: relative;
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 1.5rem;
}
.btn {
padding: 0.7rem 1.8rem;
border-radius: 10px;
font-size: 0.95rem;
font-weight: 600;
transition: all 0.25s;
cursor: pointer;
border: 1px solid transparent;
}
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent-hi));
color: #fff;
box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
border-color: var(--border);
color: var(--text-soft);
background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.hero-meta {
position: relative;
font-size: 0.82rem;
color: var(--text-mute);
letter-spacing: 0.02em;
}
/* sections */
.block {
max-width: var(--maxw);
margin: 0 auto;
padding: 4.5rem 2rem;
}
.block.alt {
background: var(--bg-soft);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.section-title {
font-size: clamp(1.6rem, 3vw, 2.2rem);
font-weight: 700;
margin: 0 0 0.5rem;
}
.section-sub {
color: var(--text-mute);
font-size: 0.95rem;
margin: 0 0 2.5rem;
}
/* card grid */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.2rem;
}
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 14px;
padding: 1.8rem;
transition: all 0.25s;
}
.card:hover {
transform: translateY(-3px);
border-color: var(--accent);
background: var(--surface-hi);
}
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
/* timeline */
.timeline { position: relative; }
.tl-item {
display: flex;
gap: 1.5rem;
padding-bottom: 2rem;
}
.tl-item::before {
content: "";
position: absolute;
left: 65px;
top: 28px;
bottom: 0;
width: 2px;
background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-year {
flex-shrink: 0;
width: 56px;
text-align: right;
font-weight: 700;
font-size: 0.85rem;
color: var(--accent-hi);
padding-top: 4px;
}
.tl-body {
position: relative;
flex: 1;
padding-left: 1.5rem;
}
.tl-body::before {
content: "";
position: absolute;
left: 0;
top: 8px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}
.tl-body h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.tl-body p { margin: 0; font-size: 0.88rem; color: var(--text-soft); }
/* app grid */
.app-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 1rem;
}
.app-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.6rem;
padding: 1.6rem 0.5rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
font-size: 0.9rem;
color: var(--text-soft);
transition: all 0.25s;
}
.app-item:hover {
transform: translateY(-2px);
border-color: var(--accent);
color: var(--text);
}
.app-emoji { font-size: 1.8rem; }
/* future */
.future-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.2rem;
margin-bottom: 2.5rem;
}
.future-card {
border-radius: 14px;
padding: 1.8rem;
border: 1px solid var(--border);
}
.future-card.positive { background: rgba(0, 184, 148, 0.08); border-color: rgba(0, 184, 148, 0.25); }
.future-card.challenge { background: rgba(225, 112, 85, 0.08); border-color: rgba(225, 112, 85, 0.25); }
.future-card h4 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.future-card p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.quote {
max-width: 640px;
margin: 0 auto;
text-align: center;
font-size: 1.15rem;
font-style: italic;
color: var(--text-soft);
border-left: none;
padding: 0;
}
.quote p { margin: 0; }
/* footer */
.footer {
border-top: 1px solid var(--border);
padding: 2.5rem 2rem;
max-width: var(--maxw);
margin: 0 auto;
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--text-mute); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-hi); }
.footer-copy { font-size: 0.8rem; color: var(--text-mute); margin: 0; }
/* responsive */
@media (max-width: 640px) {
.nav-links { display: none; }
.nav { padding: 0.75rem 1rem; }
.hero { padding: 3.5rem 1rem 3rem; }
.block { padding: 3rem 1rem; }
.tl-item { flex-direction: column; gap: 0.3rem; }
.tl-year { width: auto; text-align: left; padding-top: 0; }
.tl-body { padding-left: 1.2rem; }
.tl-item::before { left: 5px; top: 20px; }
.footer { flex-direction: column; text-align: center; }
}