platform/websites/example/css/style.css

509 lines
9.1 KiB
CSS
Raw Normal View History

:root {
--primary-color: #5FE3C4;
--primary-hover: #4BC5A8;
--text-color: #0D2538;
--light-text: #4A5568;
--background: #ffffff;
--light-bg: #F8FAFC;
--border-color: #E2E8F0;
--card-bg: #ffffff;
--max-width: 1200px;
--header-height: 60px;
}
.dark-theme {
--text-color: #ffffff;
--light-text: #CBD5E0;
--background: #0D2538;
--light-bg: #1A365D;
--border-color: #2D3748;
--card-bg: #1A365D;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
color: var(--text-color);
line-height: 1.6;
background: var(--background);
}
/* Header & Navigation */
header {
background: var(--background);
box-shadow: 0 2px 4px rgba(13, 37, 56, 0.1);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.main-nav {
max-width: var(--max-width);
margin: 0 auto;
height: var(--header-height);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}
.nav-left, .nav-right {
display: flex;
align-items: center;
gap: 24px;
}
.nav-left a, .nav-right a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: color 0.2s;
}
.nav-left a:hover {
color: var(--primary-color);
}
.logo {
display: flex;
align-items: center;
text-decoration: none;
padding: 8px 0;
}
.logo object, .logo img {
height: 32px;
width: auto;
transition: transform 0.2s ease;
}
.logo:hover object, .logo:hover img {
transform: scale(1.02);
}
.download-button {
background: var(--primary-color);
color: var(--text-color) !important;
padding: 8px 20px;
border-radius: 4px;
transition: all 0.2s;
font-weight: 600;
}
.download-button:hover {
background: var(--primary-hover);
transform: translateY(-1px);
}
.search-button {
background: none;
border: none;
cursor: pointer;
padding: 8px;
color: var(--text-color);
transition: color 0.2s;
}
.search-button:hover {
color: var(--primary-color);
}
.theme-toggle {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
padding: 8px;
font-size: 1.2rem;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #0D2538, #1A365D);
color: white;
padding: 140px 20px 100px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::after {
content: '';
position: absolute;
bottom: -50px;
left: 0;
right: 0;
height: 100px;
background: var(--background);
transform: skewY(-3deg);
}
.hero-content {
max-width: var(--max-width);
margin: 0 auto;
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
font-weight: 700;
letter-spacing: -0.5px;
}
.hero p {
font-size: 1.5rem;
margin-bottom: 40px;
opacity: 0.9;
}
.hero-buttons {
display: flex;
gap: 20px;
justify-content: center;
}
.primary-button, .secondary-button {
padding: 14px 28px;
border-radius: 4px;
text-decoration: none;
font-weight: 600;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.primary-button {
background: var(--primary-color);
color: var(--text-color);
}
.secondary-button {
background: transparent;
color: white;
border: 2px solid rgba(255,255,255,0.5);
}
.primary-button:hover {
background: var(--primary-hover);
transform: translateY(-2px);
}
.secondary-button:hover {
background: rgba(255,255,255,0.1);
transform: translateY(-2px);
border-color: white;
}
/* Features Section */
.features {
padding: 100px 0;
background: var(--light-bg);
position: relative;
overflow: hidden;
}
.feature-grid {
max-width: var(--max-width);
margin: 0 auto;
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: nowrap;
padding: 0 24px;
}
.feature-card {
background: var(--card-bg);
padding: 32px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(13, 37, 56, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: flex-start;
flex: 1;
max-width: 280px;
min-width: 240px;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(13, 37, 56, 0.2);
}
.feature-icon {
font-size: 2rem;
color: var(--primary-color);
margin-bottom: 20px;
}
.feature-card h3 {
color: var(--text-color);
margin-bottom: 15px;
font-size: 1.5rem;
}
.feature-card p {
color: var(--light-text);
margin-bottom: 20px;
flex-grow: 1;
}
.feature-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 6px;
transition: gap 0.2s;
}
.feature-link:hover {
gap: 10px;
}
/* Tools Section */
.tools {
padding: 80px 20px;
background: var(--background);
}
.tools h2, .ecosystem h2, .learning h2 {
text-align: center;
margin-bottom: 50px;
font-size: 2.5rem;
color: var(--text-color);
}
.tools-grid, .ecosystem-grid, .learning-grid {
max-width: var(--max-width);
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.tool-card, .eco-card, .learning-card {
background: var(--card-bg);
padding: 35px;
border-radius: 12px;
transition: all 0.3s ease;
border: 1px solid var(--border-color);
}
.tool-card:hover, .eco-card:hover, .learning-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(13, 37, 56, 0.2);
border-color: transparent;
}
.tool-card i, .eco-card i, .learning-card i {
font-size: 2rem;
color: var(--primary-color);
margin-bottom: 20px;
}
.tool-card h3, .eco-card h3, .learning-card h3 {
color: var(--text-color);
margin-bottom: 15px;
font-size: 1.4rem;
}
.tool-card p, .eco-card p, .learning-card p {
color: var(--light-text);
margin-bottom: 20px;
}
/* Ecosystem Section */
.ecosystem {
padding: 100px 20px;
background: var(--light-bg);
}
/* Learning Section */
.learning {
padding: 100px 20px;
background: var(--background);
}
/* News Section */
.news {
padding: 100px 20px;
max-width: var(--max-width);
margin: 0 auto;
}
.news h2 {
text-align: center;
margin-bottom: 50px;
font-size: 2.5rem;
color: var(--text-color);
}
.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.news-card {
padding: 35px;
border: 1px solid var(--border-color);
border-radius: 12px;
transition: all 0.3s ease;
background: var(--card-bg);
}
.news-card:hover {
box-shadow: 0 8px 20px rgba(13, 37, 56, 0.2);
border-color: transparent;
}
.news-date {
color: var(--light-text);
font-size: 0.9rem;
display: block;
margin-bottom: 10px;
}
.news-card h3 {
margin-bottom: 15px;
color: var(--text-color);
font-size: 1.4rem;
}
.news-card p {
color: var(--light-text);
margin-bottom: 20px;
}
.learn-more {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
transition: gap 0.2s;
}
.learn-more:hover {
gap: 10px;
}
/* Footer */
footer {
background: var(--light-bg);
padding: 80px 20px 20px;
}
.footer-content {
max-width: var(--max-width);
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
}
.footer-section h4 {
margin-bottom: 25px;
color: var(--text-color);
font-size: 1.2rem;
}
.footer-section ul {
list-style: none;
}
.footer-section ul li {
margin-bottom: 12px;
}
.footer-section ul li a {
color: var(--light-text);
text-decoration: none;
transition: color 0.2s;
}
.footer-section ul li a:hover {
color: var(--primary-color);
}
.footer-bottom {
max-width: var(--max-width);
margin: 60px auto 0;
padding-top: 20px;
border-top: 1px solid var(--border-color);
text-align: center;
color: var(--light-text);
}
/* Responsive Design */
@media (max-width: 1200px) {
.feature-grid {
flex-wrap: wrap;
justify-content: center;
}
.feature-card {
flex: 0 0 calc(50% - 24px);
max-width: none;
}
}
@media (max-width: 768px) {
.feature-card {
flex: 0 0 100%;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.2rem;
}
.hero-buttons {
flex-direction: column;
align-items: stretch;
padding: 0 20px;
}
.primary-button, .secondary-button {
justify-content: center;
}
.nav-left a:not(.logo) {
display: none;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}
.hero {
padding: 120px 20px 80px;
}
.features, .tools, .ecosystem, .learning, .news {
padding: 60px 20px;
}
.feature-card, .tool-card, .eco-card, .learning-card {
padding: 25px;
}
}