suna/backend/agent/workspace/styles.css

321 lines
5.2 KiB
CSS
Raw Normal View History

2025-04-01 10:36:26 +08:00
/* Base styles */
2025-04-01 09:26:52 +08:00
:root {
2025-04-01 10:36:26 +08:00
--primary-color: #3498db;
--secondary-color: #2ecc71;
--text-color: #333;
--bg-color: #f9f9f9;
--card-bg: #fff;
--header-bg: #fff;
--footer-bg: #333;
--footer-text: #fff;
2025-04-01 09:26:52 +08:00
--border-radius: 8px;
2025-04-01 10:36:26 +08:00
--box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
2025-04-01 09:26:52 +08:00
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
2025-04-01 10:36:26 +08:00
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
2025-04-01 09:26:52 +08:00
color: var(--text-color);
2025-04-01 10:36:26 +08:00
background-color: var(--bg-color);
transition: var(--transition);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Header styles */
header {
background-color: var(--header-bg);
box-shadow: var(--box-shadow);
padding: 1rem 0;
position: sticky;
2025-04-01 09:26:52 +08:00
top: 0;
z-index: 100;
}
2025-04-01 10:36:26 +08:00
header .container {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
justify-content: space-between;
2025-04-01 09:26:52 +08:00
align-items: center;
}
2025-04-01 10:36:26 +08:00
.logo h1 {
font-size: 1.8rem;
color: var(--primary-color);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
nav ul {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
list-style: none;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
nav ul li {
margin-left: 1.5rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
nav ul li a {
text-decoration: none;
color: var(--text-color);
2025-04-01 09:26:52 +08:00
font-weight: 500;
2025-04-01 10:36:26 +08:00
transition: var(--transition);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
nav ul li a:hover, nav ul li a.active {
color: var(--primary-color);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Button styles */
.btn {
padding: 0.8rem 1.5rem;
2025-04-01 09:26:52 +08:00
border: none;
border-radius: var(--border-radius);
2025-04-01 10:36:26 +08:00
font-weight: 600;
2025-04-01 09:26:52 +08:00
cursor: pointer;
2025-04-01 10:36:26 +08:00
transition: var(--transition);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.primary {
background-color: var(--primary-color);
color: white;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.primary:hover {
background-color: #2980b9;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.secondary {
background-color: transparent;
border: 2px solid var(--primary-color);
2025-04-01 09:26:52 +08:00
color: var(--primary-color);
}
2025-04-01 10:36:26 +08:00
.secondary:hover {
background-color: var(--primary-color);
color: white;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Hero section */
.hero {
padding: 5rem 0;
2025-04-01 09:26:52 +08:00
text-align: center;
}
2025-04-01 10:36:26 +08:00
.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto 2rem;
color: #666;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.cta {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
gap: 1rem;
2025-04-01 09:26:52 +08:00
justify-content: center;
}
2025-04-01 10:36:26 +08:00
/* Features section */
.features {
padding: 5rem 0;
background-color: var(--card-bg);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.features h2 {
text-align: center;
margin-bottom: 3rem;
font-size: 2rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.feature-card {
background-color: var(--card-bg);
padding: 2rem;
2025-04-01 09:26:52 +08:00
border-radius: var(--border-radius);
2025-04-01 10:36:26 +08:00
box-shadow: var(--box-shadow);
text-align: center;
transition: var(--transition);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.feature-card:hover {
transform: translateY(-5px);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.feature-card i {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.feature-card h3 {
margin-bottom: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Demo section */
.demo {
padding: 5rem 0;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.demo h2 {
text-align: center;
margin-bottom: 3rem;
font-size: 2rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.demo-container {
max-width: 600px;
margin: 0 auto;
background-color: var(--card-bg);
padding: 2rem;
2025-04-01 09:26:52 +08:00
border-radius: var(--border-radius);
2025-04-01 10:36:26 +08:00
box-shadow: var(--box-shadow);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.controls {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
gap: 10px;
margin-bottom: 1rem;
justify-content: center;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
input {
padding: 0.7rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.message {
padding: 1rem;
background-color: #f5f5f5;
border-radius: 4px;
margin-top: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Footer styles */
footer {
background-color: var(--footer-bg);
color: var(--footer-text);
padding: 2rem 0;
margin-top: 3rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
footer .container {
2025-04-01 09:26:52 +08:00
display: flex;
justify-content: space-between;
align-items: center;
}
2025-04-01 10:36:26 +08:00
.social-links {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
gap: 1rem;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.social-links a {
color: var(--footer-text);
font-size: 1.2rem;
transition: var(--transition);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.social-links a:hover {
color: var(--primary-color);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
.theme-toggle {
margin-top: 1.5rem;
2025-04-01 09:26:52 +08:00
display: flex;
align-items: center;
2025-04-01 10:36:26 +08:00
justify-content: center;
gap: 10px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
#themeToggle {
2025-04-01 09:26:52 +08:00
width: 40px;
height: 40px;
border-radius: 50%;
2025-04-01 10:36:26 +08:00
font-size: 1.2rem;
padding: 0;
2025-04-01 09:26:52 +08:00
display: flex;
align-items: center;
justify-content: center;
}
2025-04-01 10:36:26 +08:00
#message {
margin-top: 1.5rem;
padding: 1rem;
border-radius: 4px;
display: none;
transition: background-color 0.3s;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
/* Dark mode styles */
body.dark-mode {
background-color: #1a1a1a;
color: #f4f4f4;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
body.dark-mode .container {
background-color: #2c3e50;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
body.dark-mode h1 {
color: #3498db;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
body.dark-mode input {
background-color: #34495e;
color: white;
border-color: #2c3e50;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
body.dark-mode button {
background-color: #e74c3c;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
body.dark-mode button:hover {
background-color: #c0392b;
}
/* Responsive styles */
@media (max-width: 768px) {
nav ul {
display: none;
}
.cta {
flex-direction: column;
}
.hero h1 {
font-size: 2rem;
}
.feature-grid {
grid-template-columns: 1fr;
2025-04-01 09:26:52 +08:00
}
2025-04-01 10:36:26 +08:00
footer .container {
flex-direction: column;
gap: 1rem;
2025-04-01 09:26:52 +08:00
}
}