Files
monibuca/website/style.css
2025-01-15 10:25:14 +08:00

419 lines
8.1 KiB
CSS

:root {
--primary-color: #646cff;
--primary-color-dark: #535bf2;
--text-color: #213547;
--text-color-light: #666;
--background-color: #242424;
--text-color-dark: rgba(255, 255, 255, 0.87);
--text-color-dark-2: rgba(255, 255, 255, 0.6);
--border-color: #eee;
--code-background: #1a1a1a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: var(--text-color-dark);
line-height: 1.6;
background: var(--background-color);
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Header & Navigation */
header {
background: rgba(36, 36, 36, 0.8);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
nav {
height: 64px;
display: flex;
align-items: center;
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo img {
height: 32px;
}
.logo span {
font-size: 1.5rem;
font-weight: 600;
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
text-decoration: none;
color: var(--text-color-dark-2);
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--text-color-dark);
}
.github-link {
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Hero Section */
.hero {
padding: 120px 0 80px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 50% 0%, rgba(100, 108, 255, 0.15), rgba(36, 36, 36, 0) 50%),
radial-gradient(circle at 0% 100%, rgba(255, 182, 255, 0.1), rgba(36, 36, 36, 0) 50%),
radial-gradient(circle at 100% 100%, rgba(100, 108, 255, 0.1), rgba(36, 36, 36, 0) 50%);
z-index: -1;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 1rem;
background: linear-gradient(120deg, #bd34fe 30%, #47caff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero .subtitle {
font-size: 1.5rem;
color: var(--text-color-dark-2);
margin-bottom: 2rem;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 4rem;
}
.primary-button, .secondary-button {
padding: 0.75rem 2rem;
border-radius: 20px;
font-weight: 600;
text-decoration: none;
transition: all 0.2s;
border: 1px solid transparent;
}
.primary-button {
background: linear-gradient(to right, #bd34fe 30%, #47caff);
color: white;
box-shadow: 0 2px 12px rgba(189, 52, 254, 0.3);
}
.primary-button:hover {
background: linear-gradient(to right, #a925e5 30%, #38b8eb);
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(189, 52, 254, 0.4);
}
.secondary-button {
background: rgba(255, 255, 255, 0.1);
color: var(--text-color-dark);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.secondary-button:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 4rem;
}
.feature-card {
background: var(--code-background);
padding: 2rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition: all 0.2s;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.feature-card .icon {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.feature-card h3 {
margin-bottom: 0.5rem;
color: #bd34fe;
}
.feature-card p {
color: var(--text-color-dark-2);
}
/* Features Section */
.features {
padding: 80px 0;
background: var(--background-color);
position: relative;
}
.features::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 0% 0%, rgba(189, 52, 254, 0.15), rgba(36, 36, 36, 0) 50%),
radial-gradient(circle at 100% 0%, rgba(71, 202, 255, 0.15), rgba(36, 36, 36, 0) 50%);
z-index: -1;
}
.features h2 {
color: var(--text-color-dark);
}
.features-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature {
background: var(--code-background);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature h3 {
color: #47caff;
}
.feature p {
color: var(--text-color-dark-2);
}
/* Quickstart Section */
.quickstart {
padding: 80px 0;
}
.quickstart h2 {
text-align: center;
margin-bottom: 3rem;
font-size: 2.5rem;
}
.code-block {
background: var(--code-background);
border-radius: 8px;
margin-bottom: 2rem;
overflow: hidden;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: rgba(255,255,255,0.1);
}
.code-header span {
color: #fff;
}
.copy-button {
background: transparent;
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
padding: 0.25rem 0.75rem;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.copy-button:hover {
background: rgba(255,255,255,0.1);
}
pre {
margin: 0;
padding: 1.5rem;
}
code {
color: #fff;
font-family: 'Fira Code', monospace;
font-size: 0.9rem;
}
/* Plugins Section */
.plugins {
padding: 80px 0;
background: var(--background-color);
position: relative;
}
.plugins::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 100% 50%, rgba(71, 202, 255, 0.15), rgba(36, 36, 36, 0) 50%),
radial-gradient(circle at 0% 50%, rgba(189, 52, 254, 0.15), rgba(36, 36, 36, 0) 50%);
z-index: -1;
}
.plugins h2 {
color: var(--text-color-dark);
}
.plugins-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.plugin-card {
background: var(--code-background);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.plugin-card:hover {
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.plugin-card h3 {
background: linear-gradient(120deg, #bd34fe 30%, #47caff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.plugin-card p {
color: var(--text-color-dark-2);
}
/* Footer */
footer {
background: var(--code-background);
color: var(--text-color-dark);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer::before {
background:
radial-gradient(circle at 0% 0%, rgba(189, 52, 254, 0.15), rgba(26, 26, 26, 0) 50%),
radial-gradient(circle at 100% 100%, rgba(71, 202, 255, 0.15), rgba(26, 26, 26, 0) 50%);
}
.footer-content {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
}
.footer-section h4 {
color: #bd34fe;
}
.footer-section a {
color: var(--text-color-dark-2);
}
.footer-section a:hover {
color: var(--text-color-dark);
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.hero h1 {
font-size: 2.5rem;
}
.hero .subtitle {
font-size: 1.2rem;
}
.features-grid,
.plugins-grid {
grid-template-columns: 1fr;
}
.cta-buttons {
flex-direction: column;
}
.footer-content {
grid-template-columns: 1fr;
text-align: center;
}
}