Mobile-LM-Server / style.css
liz2353's picture
Redesign landing page with modern navigation, hero section, and improved layout
43d1293
Raw
History Blame Contribute Delete
10.1 kB
/* ============================================
Mobile LM Server - Landing Page
Light Theme · Logo-Inspired Purple Palette
============================================ */
/* --- CSS Variables (Logo-Inspired Blue Palette) --- */
:root {
--md-primary: #1565c0;
--md-on-primary: #ffffff;
--md-primary-container: #d1e4ff;
--md-on-primary-container: #001d36;
--md-secondary: #545f71;
--md-secondary-container: #d7e3f7;
--md-surface: #fffbfe;
--md-surface-dim: #f0f4f9;
--md-surface-bright: #ffffff;
--md-on-surface: #1a1c1e;
--md-on-surface-variant: #44474e;
--md-outline: #74777f;
--md-outline-variant: #c4c6d0;
--md-error: #ba1a1a;
--md-error-container: #ffdad6;
--md-surface-container: #f0f4f9;
--md-surface-container-high: #e7ebf1;
--gradient-primary: linear-gradient(135deg, #1565c0, #42a5f5, #1565c0);
--gradient-accent: linear-gradient(135deg, #1565c0, #64b5f6);
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
/* --- Reset & Base --- */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-sans);
background: var(--md-surface);
color: var(--md-on-surface);
line-height: 1.6;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* --- Navigation --- */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(255, 251, 254, 0.88);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(73, 69, 79, 0.08);
}
.nav-inner {
max-width: 960px;
margin: 0 auto;
padding: 0 1.5rem;
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.6rem;
text-decoration: none;
color: var(--md-on-surface);
}
.nav-logo-img {
width: 32px;
height: 32px;
border-radius: 8px;
}
.nav-logo-text {
font-size: 1.05rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.nav-links {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav-links a {
text-decoration: none;
color: var(--md-on-surface-variant);
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--md-primary);
}
.nav-download-btn {
background: var(--md-primary);
color: var(--md-on-primary) !important;
padding: 0.45rem 1.1rem;
border-radius: 20px;
font-weight: 600 !important;
font-size: 0.85rem !important;
transition: opacity 0.2s, transform 0.2s !important;
}
.nav-download-btn:hover {
opacity: 0.92;
transform: translateY(-1px);
color: var(--md-on-primary) !important;
}
/* --- Section Label & Title --- */
.section-label {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.12em;
color: var(--md-primary);
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.section-title {
font-size: 2.2rem;
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.2;
margin-bottom: 1rem;
color: var(--md-on-surface);
}
.section-desc {
font-size: 1.05rem;
color: var(--md-on-surface-variant);
max-width: 560px;
margin-bottom: 2.5rem;
}
.gradient-text {
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* --- Hero Section --- */
.hero {
position: relative;
min-height: 70vh;
display: flex;
align-items: center;
padding-top: 60px;
overflow: hidden;
background: linear-gradient(160deg, #eef4ff 0%, #d1e4ff 40%, #f0f4f9 70%, #fffbfe 100%);
}
.hero-bg-glow {
position: absolute;
top: -20%;
right: -5%;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(21, 101, 192, 0.08) 0%, transparent 70%);
pointer-events: none;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
padding: 3rem 0;
}
.hero-text {
position: relative;
z-index: 1;
text-align: center;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.9rem;
border-radius: 20px;
background: var(--md-primary-container);
border: 1px solid rgba(21, 101, 192, 0.15);
font-size: 0.8rem;
font-weight: 600;
color: var(--md-on-primary-container);
margin-bottom: 1.2rem;
}
.hero-title {
font-size: 2.8rem;
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1.15;
margin-bottom: 1.2rem;
color: var(--md-on-surface);
}
.hero-subtitle {
font-size: 1.1rem;
color: var(--md-on-surface-variant);
line-height: 1.8;
margin-bottom: 2rem;
max-width: 720px;
margin-left: auto;
margin-right: auto;
}
.hero-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: center;
}
.btn-primary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: var(--md-primary);
color: var(--md-on-primary);
font-weight: 600;
font-size: 0.95rem;
border-radius: 28px;
text-decoration: none;
transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
border: none;
cursor: pointer;
box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
}
.btn-primary:hover {
opacity: 0.95;
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
}
.btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.75rem 1.5rem;
background: transparent;
color: var(--md-on-surface);
font-weight: 500;
font-size: 0.95rem;
border-radius: 28px;
text-decoration: none;
border: 1px solid var(--md-outline-variant);
transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
border-color: var(--md-primary);
background: rgba(21, 101, 192, 0.04);
}
.hero-stats {
display: flex;
gap: 1.5rem;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.stat-value {
font-size: 1.1rem;
font-weight: 700;
color: var(--md-primary);
}
.stat-label {
font-size: 0.8rem;
color: var(--md-on-surface-variant);
}
/* --- Prose Content (文字排版) --- */
.prose-content p {
font-size: 1rem;
color: var(--md-on-surface-variant);
line-height: 1.8;
margin-bottom: 1.2rem;
}
.prose-content p strong {
color: var(--md-on-surface);
font-weight: 600;
}
.prose-content p em {
color: var(--md-primary);
font-style: italic;
}
.prose-content .feature-list {
margin-bottom: 1.5rem;
}
/* --- Feature List (统一列表样式) --- */
.feature-list {
list-style: none;
padding: 0;
}
.feature-list li {
position: relative;
padding: 0.75rem 1rem 0.75rem 2.2rem;
margin-bottom: 0.5rem;
background: var(--md-surface-container);
border: 1px solid rgba(73, 69, 79, 0.06);
border-radius: 12px;
font-size: 0.95rem;
color: var(--md-on-surface-variant);
line-height: 1.65;
transition: background 0.2s, border-color 0.2s;
}
.feature-list li:hover {
background: var(--md-surface-container-high);
border-color: rgba(21, 101, 192, 0.12);
}
.feature-list li strong {
color: var(--md-on-surface);
font-weight: 600;
}
/* --- Section Alt (alternate background) --- */
.section-alt {
background: var(--md-surface-container);
padding: 5rem 0;
}
section:not(.hero):not(.section-alt):not(.gallery-section):not(.download-section) {
padding: 5rem 0;
}
/* --- Download Section --- */
.download-section {
padding: 5rem 0;
background: var(--md-surface-container);
}
.download-card {
background: linear-gradient(135deg, rgba(21, 101, 192, 0.06), rgba(255, 255, 255, 0.8));
border: 1px solid rgba(21, 101, 192, 0.12);
border-radius: 28px;
padding: 3.5rem;
text-align: center;
}
.download-content {
display: flex;
flex-direction: column;
align-items: center;
}
.download-buttons {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.btn-download {
padding: 0.9rem 2rem;
font-size: 1.05rem;
}
.btn-googleplay {
display: inline-block;
transition: transform 0.2s, opacity 0.2s;
}
.btn-googleplay:hover {
transform: scale(1.03);
opacity: 0.92;
}
.btn-googleplay img {
width: 260px;
height: auto;
}
.download-meta {
margin-top: 1.5rem;
font-size: 0.9rem;
color: var(--md-on-surface-variant);
}
/* --- Footer --- */
.footer {
padding: 3rem 0 2rem;
border-top: 1px solid rgba(73, 69, 79, 0.06);
}
.footer-inner {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 2rem;
}
.footer-logo {
font-size: 1rem;
font-weight: 700;
color: var(--md-on-surface);
}
.footer-brand p {
font-size: 0.85rem;
color: var(--md-on-surface-variant);
margin-top: 0.25rem;
}
.footer-links {
display: flex;
gap: 1.5rem;
}
.footer-links a {
text-decoration: none;
color: var(--md-on-surface-variant);
font-size: 0.85rem;
transition: color 0.2s;
}
.footer-links a:hover {
color: var(--md-primary);
}
.footer-bottom {
border-top: 1px solid rgba(73, 69, 79, 0.04);
padding-top: 1.5rem;
text-align: center;
}
.footer-bottom p {
font-size: 0.8rem;
color: var(--md-on-surface-variant);
}
.footer-tagline {
margin-top: 0.25rem;
font-size: 0.75rem !important;
color: rgba(73, 69, 79, 0.4) !important;
}
/* --- Responsive --- */
@media (max-width: 900px) {
.hero-title {
font-size: 2.2rem;
}
.section-title {
font-size: 1.7rem;
}
.download-card {
padding: 2rem 1.5rem;
}
.footer-inner {
flex-direction: column;
gap: 1rem;
}
}
@media (max-width: 640px) {
.container {
padding: 0 1rem;
}
.hero-title {
font-size: 1.6rem;
}
.hero-bg-glow {
width: 300px;
height: 300px;
}
.nav-links a:not(.nav-download-btn) {
display: none;
}
section:not(.hero):not(.section-alt):not(.download-section) {
padding: 3rem 0;
}
.section-alt,
.download-section {
padding: 3rem 0;
}
.feature-list li {
font-size: 0.9rem;
padding: 0.65rem 0.8rem 0.65rem 1.8rem;
}
.btn-googleplay img {
width: 200px;
}
}