初始化项目:基础设施 + 用户认证 + 后台管理系统 + AGPL 3.0 许可
This commit is contained in:
351
templates/MetaLab-2026/static/css/auth.css
Normal file
351
templates/MetaLab-2026/static/css/auth.css
Normal file
@ -0,0 +1,351 @@
|
||||
/* ============================================================
|
||||
MetaLab Auth Styles — 注册/登录页面专属样式
|
||||
============================================================ */
|
||||
|
||||
/* ---------- Auth Page Layout ---------- */
|
||||
.auth-page {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem 20px;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 2.5rem;
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.auth-card h2 {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
text-align: center;
|
||||
margin-bottom: .4rem;
|
||||
}
|
||||
|
||||
.auth-card .auth-subtitle {
|
||||
text-align: center;
|
||||
color: var(--color-secondary);
|
||||
font-size: .95rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* ---------- Form ---------- */
|
||||
.form-group {
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: .9rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: .4rem;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: .75rem 1rem;
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
font-size: 1rem;
|
||||
transition: var(--transition);
|
||||
outline: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: 0 0 0 3px rgba(52,152,219,.15);
|
||||
}
|
||||
|
||||
.form-group input.error {
|
||||
border-color: var(--color-danger);
|
||||
}
|
||||
|
||||
.form-error {
|
||||
color: var(--color-danger);
|
||||
font-size: .8rem;
|
||||
margin-top: .3rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.guidelines-link {
|
||||
font-size: .85rem;
|
||||
color: var(--color-text-light);
|
||||
text-align: center;
|
||||
margin: 1.2rem 0;
|
||||
}
|
||||
|
||||
.guidelines-link a {
|
||||
color: var(--color-accent);
|
||||
font-weight: 500;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.guidelines-link a:hover {
|
||||
color: #2980b9;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
padding: .85rem;
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background: #2980b9;
|
||||
}
|
||||
|
||||
.submit-btn:disabled {
|
||||
background: #b0bec5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ---------- Remember Me ---------- */
|
||||
.remember-group {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.remember-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
font-size: .9rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.remember-label input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
accent-color: var(--color-accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
.remember-hint {
|
||||
display: block;
|
||||
font-size: .78rem;
|
||||
color: var(--color-secondary);
|
||||
margin-top: .3rem;
|
||||
margin-left: 24px;
|
||||
}
|
||||
|
||||
.auth-footer {
|
||||
text-align: center;
|
||||
margin-top: 1.5rem;
|
||||
font-size: .9rem;
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.auth-footer a {
|
||||
color: var(--color-accent);
|
||||
font-weight: 500;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.auth-footer a:hover {
|
||||
color: #2980b9;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ---------- Modal ---------- */
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,.5);
|
||||
z-index: 2000;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.modal-overlay.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
width: 100%;
|
||||
max-width: 700px;
|
||||
max-height: 85vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.2rem 1.5rem;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.modal-header h3 {
|
||||
font-size: 1.2rem;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.4rem;
|
||||
color: var(--color-secondary);
|
||||
cursor: pointer;
|
||||
padding: .2rem;
|
||||
line-height: 1;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 1.5rem 1.5rem 1rem;
|
||||
font-size: .92rem;
|
||||
line-height: 1.8;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.modal-body h4 {
|
||||
font-size: 1.05rem;
|
||||
color: var(--color-primary);
|
||||
margin: 1.2rem 0 .5rem;
|
||||
}
|
||||
|
||||
.modal-body h4:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.modal-body p {
|
||||
margin-bottom: .8rem;
|
||||
}
|
||||
|
||||
.modal-body .red {
|
||||
color: var(--color-danger);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal-body .highlight {
|
||||
color: var(--color-danger);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1rem 1.5rem;
|
||||
border-top: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
gap: .6rem;
|
||||
}
|
||||
|
||||
.timer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .4rem;
|
||||
color: var(--color-secondary);
|
||||
font-size: .9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.timer .count {
|
||||
color: var(--color-accent);
|
||||
font-weight: 700;
|
||||
min-width: 1.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.timer.done .count {
|
||||
color: #27ae60;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
padding: .6rem 1.8rem;
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-size: .95rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.confirm-btn:hover {
|
||||
background: #2980b9;
|
||||
}
|
||||
|
||||
.confirm-btn:disabled {
|
||||
background: #b0bec5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.scroll-hint {
|
||||
color: var(--color-danger);
|
||||
font-size: .82rem;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .3rem;
|
||||
}
|
||||
|
||||
/* ---------- Toast ---------- */
|
||||
.toast {
|
||||
position: fixed;
|
||||
top: 1.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-120px);
|
||||
background: #27ae60;
|
||||
color: #fff;
|
||||
padding: .85rem 2rem;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
z-index: 3000;
|
||||
box-shadow: 0 6px 20px rgba(39,174,96,.35);
|
||||
transition: transform .4s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
.toast.error {
|
||||
background: var(--color-danger);
|
||||
box-shadow: 0 6px 20px rgba(231,76,60,.35);
|
||||
}
|
||||
|
||||
/* ---------- Responsive ---------- */
|
||||
@media (max-width: 768px) {
|
||||
.auth-card {
|
||||
padding: 1.8rem;
|
||||
}
|
||||
.modal {
|
||||
max-height: 90vh;
|
||||
}
|
||||
.modal-body {
|
||||
font-size: .85rem;
|
||||
}
|
||||
}
|
||||
240
templates/MetaLab-2026/static/css/common.css
Normal file
240
templates/MetaLab-2026/static/css/common.css
Normal file
@ -0,0 +1,240 @@
|
||||
/* ============================================================
|
||||
MetaLab Common Styles — 全站共享样式(Reset / 变量 / 导航 / 页脚)
|
||||
每个页面加载此文件后,按需加载页面专属 CSS
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--color-bg: #f8f9fa;
|
||||
--color-surface: #fff;
|
||||
--color-primary: #2c3e50;
|
||||
--color-secondary: #7f8c8d;
|
||||
--color-accent: #3498db;
|
||||
--color-danger: #e74c3c;
|
||||
--color-border: #e0e0e0;
|
||||
--color-text: #333;
|
||||
--color-text-light: #666;
|
||||
--shadow: 0 4px 12px rgba(0,0,0,.08);
|
||||
--radius: 8px;
|
||||
--transition: all .3s ease;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* ---------- Reset ---------- */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
line-height: 1.6;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* ---------- Layout ---------- */
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: -.125em;
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ---------- Header / Nav ---------- */
|
||||
header {
|
||||
background: var(--color-surface);
|
||||
box-shadow: var(--shadow);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: .6rem 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.logo span {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
font-weight: 500;
|
||||
padding: .5rem 0;
|
||||
position: relative;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-links a.nav-active {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.nav-links a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: var(--color-accent);
|
||||
transition: width .3s ease;
|
||||
}
|
||||
|
||||
.nav-links a:hover::after,
|
||||
.nav-links a.nav-active::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav-login {
|
||||
color: var(--color-accent) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
.nav-user {
|
||||
color: var(--color-accent) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
.nav-logout {
|
||||
color: var(--color-secondary) !important;
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
color: var(--color-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ---------- Contact / Footer ---------- */
|
||||
.contact-bar {
|
||||
text-align: center;
|
||||
padding: .6rem 0;
|
||||
background: #e8f0f8;
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: .95rem;
|
||||
color: var(--color-text-light);
|
||||
}
|
||||
|
||||
.contact-bar a {
|
||||
color: var(--color-accent);
|
||||
font-weight: 600;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.contact-bar a:hover {
|
||||
color: #2980b9;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
footer {
|
||||
background: var(--color-primary);
|
||||
color: #bdc3c7;
|
||||
padding: .8rem 0;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: .9rem;
|
||||
color: #95a5a6;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ---------- Scroll-to-top ---------- */
|
||||
.scroll-top-btn {
|
||||
position: fixed;
|
||||
bottom: 1.5rem;
|
||||
right: 1.5rem;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
box-shadow: 0 4px 12px rgba(52,152,219,.35);
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 999;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translateY(10px);
|
||||
transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
|
||||
}
|
||||
|
||||
.scroll-top-btn.visible {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.scroll-top-btn:hover {
|
||||
background: #2980b9;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 16px rgba(52,152,219,.45);
|
||||
}
|
||||
|
||||
/* ---------- Responsive (共享:导航) ---------- */
|
||||
@media (max-width: 768px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background: var(--color-surface);
|
||||
flex-direction: column;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0 10px 15px rgba(0,0,0,.1);
|
||||
text-align: center;
|
||||
}
|
||||
.nav-links.active {
|
||||
display: flex;
|
||||
}
|
||||
.mobile-menu-btn {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
354
templates/MetaLab-2026/static/css/home.css
Normal file
354
templates/MetaLab-2026/static/css/home.css
Normal file
@ -0,0 +1,354 @@
|
||||
/* ============================================================
|
||||
MetaLab Home Styles — 首页专属样式(Hero / Plans / Features / Timeline)
|
||||
仅在首页加载,通过 ExtraCSS 注入
|
||||
============================================================ */
|
||||
|
||||
/* ---------- Hero ---------- */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 4rem 0;
|
||||
text-align: center;
|
||||
background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 4rem;
|
||||
font-weight: 800;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: .6rem;
|
||||
line-height: 1.1;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
.hero h1 span {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.hero-tagline {
|
||||
font-size: 1.5rem;
|
||||
color: var(--color-secondary);
|
||||
margin-bottom: 1.5rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.hero-desc {
|
||||
font-size: 1.15rem;
|
||||
color: var(--color-text-light);
|
||||
max-width: 500px;
|
||||
margin: 0 auto 2.2rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.cta-button,
|
||||
.secondary-button {
|
||||
display: inline-block;
|
||||
padding: .9rem 2.2rem;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border: 2px solid var(--color-accent);
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
background: transparent;
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.secondary-button {
|
||||
background: transparent;
|
||||
color: var(--color-accent);
|
||||
border: 2px solid var(--color-accent);
|
||||
}
|
||||
|
||||
.secondary-button:hover {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ---------- Shared section headings ---------- */
|
||||
.section-title {
|
||||
text-align: center;
|
||||
font-size: 2.2rem;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: .8rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
text-align: center;
|
||||
color: var(--color-secondary);
|
||||
font-size: 1.1rem;
|
||||
max-width: 600px;
|
||||
margin: 0 auto 3.5rem;
|
||||
}
|
||||
|
||||
/* ---------- Plans ---------- */
|
||||
.plans {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 1.5rem 0;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.plans .section-title {
|
||||
font-size: 2rem;
|
||||
margin-bottom: .4rem;
|
||||
}
|
||||
|
||||
.plans .section-subtitle {
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.plans-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.plan-card {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
transition: var(--transition);
|
||||
border: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.plan-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,.12);
|
||||
}
|
||||
|
||||
.plan-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: rgba(52,152,219,.1);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--color-accent);
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
.plan-card h3 {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
.plan-card p {
|
||||
color: var(--color-text-light);
|
||||
margin-bottom: 1rem;
|
||||
flex-grow: 1;
|
||||
font-size: .95rem;
|
||||
}
|
||||
|
||||
.plan-status {
|
||||
display: inline-block;
|
||||
background: #e8f4fc;
|
||||
color: var(--color-accent);
|
||||
padding: .3rem .9rem;
|
||||
border-radius: 20px;
|
||||
font-size: .85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ---------- Features ---------- */
|
||||
.features {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 4rem 0;
|
||||
background: var(--color-surface);
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2.5rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.feature {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feature .icon {
|
||||
font-size: 2.5rem;
|
||||
color: var(--color-accent);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.feature h3 {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: .8rem;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.feature p {
|
||||
color: var(--color-text-light);
|
||||
}
|
||||
|
||||
/* ---------- Timeline ---------- */
|
||||
.section-group {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.timeline-vision {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 1.5rem 0 1rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.timeline-vision .section-title {
|
||||
margin-bottom: .3rem;
|
||||
}
|
||||
|
||||
.timeline-vision .section-subtitle {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.timeline {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
padding: 2rem 0 1rem;
|
||||
overflow-x: auto;
|
||||
overflow-y: visible;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-y: contain;
|
||||
}
|
||||
|
||||
.timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 4%;
|
||||
top: 1.9rem;
|
||||
width: 92%;
|
||||
height: 3px;
|
||||
background: var(--color-accent);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
min-width: 200px;
|
||||
max-width: 240px;
|
||||
padding: 0 .5rem;
|
||||
}
|
||||
|
||||
.timeline-marker {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: var(--color-accent);
|
||||
border-radius: 50%;
|
||||
border: 4px solid var(--color-surface);
|
||||
box-shadow: var(--shadow);
|
||||
margin-bottom: 1.5rem;
|
||||
z-index: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem 1.2rem;
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid var(--color-border);
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.timeline-item:hover .timeline-content {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,.12);
|
||||
}
|
||||
|
||||
.timeline-title {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
.timeline-desc {
|
||||
color: var(--color-text-light);
|
||||
font-size: .95rem;
|
||||
}
|
||||
|
||||
/* ---------- Responsive (首页专属) ---------- */
|
||||
@media (max-width: 768px) {
|
||||
.hero h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
.hero-tagline {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
.hero-desc {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.timeline {
|
||||
justify-content: flex-start;
|
||||
gap: 1.5rem;
|
||||
padding: 2rem 20px 1.5rem;
|
||||
scroll-snap-type: x mandatory;
|
||||
}
|
||||
.timeline-item {
|
||||
min-width: 240px;
|
||||
max-width: 280px;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
.timeline::before {
|
||||
left: 20px;
|
||||
width: calc(240px * 4 + 1.5rem * 3 + 20px);
|
||||
}
|
||||
.cta-button,
|
||||
.secondary-button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: .5rem 0;
|
||||
}
|
||||
.secondary-button {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user