suna/backend/agent/workspace/styles.css

558 lines
9.9 KiB
CSS
Raw Normal View History

2025-03-31 06:55:26 +08:00
/* Base Styles */
:root {
2025-03-31 08:07:38 +08:00
--primary-color: #4f46e5;
--primary-dark: #4338ca;
2025-03-31 06:55:26 +08:00
--secondary-color: #10b981;
2025-03-31 08:07:38 +08:00
--dark-color: #1f2937;
--light-color: #f9fafb;
--gray-color: #6b7280;
--light-gray: #e5e7eb;
2025-03-31 06:55:26 +08:00
--border-radius: 8px;
--box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--transition: all 0.3s ease;
2025-03-31 08:12:21 +08:00
/* Background and text colors */
--bg-color: #f9fafb;
--text-color: #1f2937;
--card-bg: #ffffff;
--header-bg: #ffffff;
--footer-bg: #1f2937;
--footer-text: #ffffff;
}
/* Dark mode colors */
[data-theme="dark"] {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--bg-color: #111827;
--text-color: #f9fafb;
--card-bg: #1f2937;
--gray-color: #9ca3af;
--light-gray: #374151;
--header-bg: #1f2937;
--footer-bg: #111827;
--footer-text: #f9fafb;
--box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
2025-03-31 06:55:26 +08:00
}
2025-03-30 14:48:57 +08:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2025-03-31 06:55:26 +08:00
html {
scroll-behavior: smooth;
}
2025-03-30 14:48:57 +08:00
body {
2025-03-31 08:07:38 +08:00
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
2025-03-31 06:55:26 +08:00
line-height: 1.6;
2025-03-31 08:12:21 +08:00
color: var(--text-color);
background-color: var(--bg-color);
transition: background-color 0.3s ease, color 0.3s ease;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
display: block;
2025-03-31 07:03:05 +08:00
border-radius: var(--border-radius);
2025-03-31 06:55:26 +08:00
}
.container {
2025-03-30 14:48:57 +08:00
width: 100%;
2025-03-31 06:55:26 +08:00
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
section {
padding: 80px 0;
}
.btn {
display: inline-block;
padding: 12px 24px;
border-radius: var(--border-radius);
font-weight: 600;
text-align: center;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
2025-03-31 08:07:38 +08:00
box-shadow: var(--box-shadow);
2025-03-31 06:55:26 +08:00
}
.btn-secondary {
background-color: transparent;
color: var(--dark-color);
border: 1px solid var(--light-gray);
}
.btn-secondary:hover {
background-color: var(--light-gray);
transform: translateY(-2px);
}
2025-03-31 08:07:38 +08:00
/* Header Styles */
header {
2025-03-31 08:12:21 +08:00
background-color: var(--header-bg);
2025-03-31 06:55:26 +08:00
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
2025-03-31 08:07:38 +08:00
position: sticky;
top: 0;
z-index: 100;
2025-03-31 08:12:21 +08:00
transition: background-color 0.3s ease;
2025-03-31 06:55:26 +08:00
}
2025-03-31 08:07:38 +08:00
.navbar {
2025-03-31 06:55:26 +08:00
display: flex;
justify-content: space-between;
align-items: center;
2025-03-31 08:07:38 +08:00
padding: 20px 0;
2025-03-31 06:55:26 +08:00
}
2025-03-31 08:12:21 +08:00
.nav-actions {
display: flex;
align-items: center;
gap: 20px;
}
.dark-mode-toggle {
background: none;
border: none;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: var(--text-color);
background-color: var(--light-gray);
transition: var(--transition);
position: relative;
overflow: hidden;
}
.dark-mode-toggle:hover {
background-color: var(--gray-color);
}
.dark-mode-toggle .fa-sun {
position: absolute;
opacity: 0;
transform: translateY(20px);
transition: var(--transition);
}
.dark-mode-toggle .fa-moon {
position: absolute;
opacity: 1;
transform: translateY(0);
transition: var(--transition);
}
[data-theme="dark"] .dark-mode-toggle .fa-sun {
opacity: 1;
transform: translateY(0);
}
[data-theme="dark"] .dark-mode-toggle .fa-moon {
opacity: 0;
transform: translateY(-20px);
}
2025-03-31 06:55:26 +08:00
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.nav-links {
display: flex;
gap: 30px;
}
.nav-links a {
font-weight: 500;
transition: var(--transition);
}
.nav-links a:hover {
color: var(--primary-color);
}
.mobile-menu-btn {
2025-03-30 14:48:57 +08:00
display: none;
2025-03-31 06:55:26 +08:00
background: none;
border: none;
cursor: pointer;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.mobile-menu-btn span {
2025-03-30 14:48:57 +08:00
display: block;
2025-03-31 06:55:26 +08:00
width: 25px;
height: 3px;
background-color: var(--dark-color);
margin: 5px 0;
transition: var(--transition);
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
/* Hero Section */
.hero {
2025-03-31 08:07:38 +08:00
background-color: #f8fafc;
padding-top: 120px;
padding-bottom: 80px;
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
.hero-content {
2025-03-31 06:55:26 +08:00
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}
2025-03-31 08:07:38 +08:00
.hero-text h1 {
2025-03-31 06:55:26 +08:00
font-size: 3rem;
line-height: 1.2;
margin-bottom: 20px;
color: var(--dark-color);
}
2025-03-31 08:07:38 +08:00
.hero-text p {
2025-03-31 06:55:26 +08:00
font-size: 1.2rem;
color: var(--gray-color);
margin-bottom: 30px;
}
.hero-buttons {
2025-03-30 14:48:57 +08:00
display: flex;
2025-03-31 06:55:26 +08:00
gap: 15px;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.hero-image img {
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
/* Section Header */
.section-header {
text-align: center;
margin-bottom: 60px;
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 16px;
color: var(--dark-color);
}
.section-header p {
font-size: 1.1rem;
color: var(--gray-color);
max-width: 600px;
margin: 0 auto;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
/* Features Section */
.features {
2025-03-31 08:12:21 +08:00
background-color: var(--card-bg);
transition: background-color 0.3s ease;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.features-grid {
display: grid;
2025-03-31 08:07:38 +08:00
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
2025-03-31 06:55:26 +08:00
gap: 30px;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.feature-card {
2025-03-31 08:12:21 +08:00
background-color: var(--card-bg);
2025-03-31 06:55:26 +08:00
padding: 30px;
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
2025-03-31 08:12:21 +08:00
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
2025-03-31 06:55:26 +08:00
text-align: center;
2025-03-31 07:03:05 +08:00
border: 1px solid var(--light-gray);
2025-03-31 06:55:26 +08:00
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--box-shadow);
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.feature-icon {
width: 70px;
height: 70px;
2025-03-31 08:07:38 +08:00
background-color: rgba(79, 70, 229, 0.1);
2025-03-31 06:55:26 +08:00
border-radius: 50%;
2025-03-30 14:48:57 +08:00
display: flex;
2025-03-31 06:55:26 +08:00
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}
.feature-icon i {
font-size: 30px;
color: var(--primary-color);
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
}
.feature-card p {
color: var(--gray-color);
}
/* About Section */
.about {
2025-03-31 08:07:38 +08:00
background-color: #f8fafc;
2025-03-31 06:55:26 +08:00
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
2025-03-30 14:48:57 +08:00
gap: 40px;
2025-03-31 06:55:26 +08:00
align-items: center;
}
.about-text h2 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.about-text p {
2025-03-30 14:48:57 +08:00
margin-bottom: 20px;
2025-03-31 06:55:26 +08:00
color: var(--gray-color);
}
.about-image img {
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
2025-03-31 07:03:05 +08:00
}
2025-03-31 06:55:26 +08:00
/* Contact Section */
.contact {
2025-03-31 08:12:21 +08:00
background-color: var(--card-bg);
transition: background-color 0.3s ease;
2025-03-31 06:55:26 +08:00
}
.contact-form {
2025-03-31 08:07:38 +08:00
max-width: 600px;
margin: 0 auto;
2025-03-31 06:55:26 +08:00
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.form-group input,
2025-03-31 08:07:38 +08:00
.form-group textarea {
2025-03-30 14:48:57 +08:00
width: 100%;
2025-03-31 06:55:26 +08:00
padding: 12px;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
font-family: inherit;
font-size: 1rem;
transition: var(--transition);
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.form-group input:focus,
2025-03-31 08:07:38 +08:00
.form-group textarea:focus {
2025-03-31 06:55:26 +08:00
outline: none;
border-color: var(--primary-color);
2025-03-31 08:07:38 +08:00
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
2025-03-30 14:48:57 +08:00
}
2025-03-31 08:07:38 +08:00
.form-group textarea {
resize: vertical;
2025-03-31 06:55:26 +08:00
}
/* Footer */
footer {
2025-03-31 08:12:21 +08:00
background-color: var(--footer-bg);
color: var(--footer-text);
2025-03-31 06:55:26 +08:00
padding: 80px 0 30px;
2025-03-31 08:12:21 +08:00
transition: background-color 0.3s ease;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 40px;
margin-bottom: 60px;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-logo a {
font-size: 1.8rem;
font-weight: 700;
color: white;
margin-bottom: 15px;
display: inline-block;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-logo p {
color: var(--light-gray);
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-links {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-column h4 {
font-size: 1.2rem;
2025-03-30 14:48:57 +08:00
margin-bottom: 20px;
2025-03-31 06:55:26 +08:00
color: white;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-column a {
display: block;
margin-bottom: 10px;
color: var(--light-gray);
transition: var(--transition);
}
.footer-column a:hover {
color: white;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
color: var(--light-gray);
}
.social-links {
display: flex;
gap: 15px;
}
.social-links a {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.social-links a:hover {
background-color: var(--primary-color);
transform: translateY(-3px);
}
/* Responsive Styles */
@media (max-width: 992px) {
2025-03-31 08:07:38 +08:00
.hero-content,
.about-content {
2025-03-31 06:55:26 +08:00
grid-template-columns: 1fr;
}
2025-03-31 08:07:38 +08:00
.hero-text {
2025-03-31 06:55:26 +08:00
order: 1;
}
.hero-image {
order: 2;
}
.about-text {
order: 2;
}
.about-image {
order: 1;
}
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
@media (max-width: 768px) {
.nav-links {
display: none;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.mobile-menu-btn {
display: block;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-content {
grid-template-columns: 1fr;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-links {
grid-template-columns: 1fr;
2025-03-30 14:48:57 +08:00
}
2025-03-31 06:55:26 +08:00
.footer-bottom {
flex-direction: column;
gap: 20px;
text-align: center;
2025-03-30 14:48:57 +08:00
}
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
/* Mobile Menu */
.mobile-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
2025-03-31 08:12:21 +08:00
background-color: var(--card-bg);
2025-03-31 08:07:38 +08:00
padding: 20px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
z-index: 99;
2025-03-31 08:12:21 +08:00
transition: background-color 0.3s ease;
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
.mobile-nav.active {
display: block;
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
.mobile-nav a {
display: block;
padding: 10px 0;
border-bottom: 1px solid var(--light-gray);
font-weight: 500;
2025-03-31 07:03:05 +08:00
}
2025-03-31 08:07:38 +08:00
.mobile-nav a:last-child {
border-bottom: none;
2025-03-30 14:48:57 +08:00
}