235 lines
6.2 KiB
CSS
235 lines
6.2 KiB
CSS
/* Theme Styles */
|
|
|
|
/* Modern Theme - 现代简约风格 */
|
|
.theme-modern {
|
|
--theme-primary-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
--theme-secondary-bg: #f8fafc;
|
|
--theme-accent-color: #3b82f6;
|
|
--theme-text-primary: #1e293b;
|
|
--theme-text-secondary: #64748b;
|
|
--theme-border-radius: 12px;
|
|
--theme-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--theme-card-bg: #ffffff;
|
|
--theme-hero-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f1f5f9' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* Classic Theme - 经典商务风格 */
|
|
.theme-classic {
|
|
--theme-primary-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
|
--theme-secondary-bg: #ecf0f1;
|
|
--theme-accent-color: #e74c3c;
|
|
--theme-text-primary: #2c3e50;
|
|
--theme-text-secondary: #7f8c8d;
|
|
--theme-border-radius: 6px;
|
|
--theme-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--theme-card-bg: #ffffff;
|
|
--theme-hero-pattern: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23bdc3c7' fill-opacity='0.3'%3E%3Cpath d='M20 20h20v20H20V20zm-20 0h20v20H0V20z'/%3E%3C/g%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* Creative Theme - 创意活力风格 */
|
|
.theme-creative {
|
|
--theme-primary-bg: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
|
|
--theme-secondary-bg: #fff5f5;
|
|
--theme-accent-color: #ff6b6b;
|
|
--theme-text-primary: #2d3748;
|
|
--theme-text-secondary: #718096;
|
|
--theme-border-radius: 20px;
|
|
--theme-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
--theme-card-bg: #ffffff;
|
|
--theme-hero-pattern: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b6b' fill-opacity='0.1'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* Theme-specific component styles */
|
|
|
|
/* Hero Section Styles */
|
|
.theme-modern .hero-section {
|
|
background: var(--theme-primary-bg);
|
|
background-attachment: fixed;
|
|
position: relative;
|
|
}
|
|
|
|
.theme-modern .hero-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--theme-hero-pattern);
|
|
opacity: 0.1;
|
|
}
|
|
|
|
.theme-classic .hero-section {
|
|
background: var(--theme-primary-bg);
|
|
position: relative;
|
|
}
|
|
|
|
.theme-classic .hero-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--theme-hero-pattern);
|
|
opacity: 0.05;
|
|
}
|
|
|
|
.theme-creative .hero-section {
|
|
background: var(--theme-primary-bg);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.theme-creative .hero-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--theme-hero-pattern);
|
|
opacity: 0.1;
|
|
animation: float 6s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0px); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
/* Card Styles */
|
|
.theme-modern .themed-card {
|
|
background: var(--theme-card-bg);
|
|
border-radius: var(--theme-border-radius);
|
|
box-shadow: var(--theme-shadow);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.theme-modern .themed-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 20px 40px -7px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.theme-classic .themed-card {
|
|
background: var(--theme-card-bg);
|
|
border-radius: var(--theme-border-radius);
|
|
box-shadow: var(--theme-shadow);
|
|
border: 1px solid #e1e8ed;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.theme-classic .themed-card:hover {
|
|
border-color: var(--theme-accent-color);
|
|
box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.theme-creative .themed-card {
|
|
background: var(--theme-card-bg);
|
|
border-radius: var(--theme-border-radius);
|
|
box-shadow: var(--theme-shadow);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
.theme-creative .themed-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.theme-creative .themed-card:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.theme-creative .themed-card:hover {
|
|
transform: translateY(-8px) scale(1.02);
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Button Styles */
|
|
.theme-modern .themed-button {
|
|
background: var(--theme-accent-color);
|
|
border-radius: var(--theme-border-radius);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.theme-classic .themed-button {
|
|
background: var(--theme-accent-color);
|
|
border-radius: var(--theme-border-radius);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.theme-creative .themed-button {
|
|
background: var(--theme-accent-color);
|
|
border-radius: var(--theme-border-radius);
|
|
transition: all 0.4s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Text Styles */
|
|
.themed-text-primary {
|
|
color: var(--theme-text-primary);
|
|
}
|
|
|
|
.themed-text-secondary {
|
|
color: var(--theme-text-secondary);
|
|
}
|
|
|
|
/* Layout Styles */
|
|
.theme-modern .themed-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.theme-classic .themed-container {
|
|
max-width: 1140px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.theme-creative .themed-container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 0 32px;
|
|
}
|
|
|
|
/* Themed Pagination Styles */
|
|
.themed-pagination {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.themed-pagination [data-slot="item"] {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.themed-pagination [data-slot="item"]:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px -8px rgba(102, 126, 234, 0.6);
|
|
}
|
|
|
|
.themed-pagination [data-slot="prev"],
|
|
.themed-pagination [data-slot="next"] {
|
|
background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
|
|
color: white;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.themed-pagination [data-slot="prev"]:hover,
|
|
.themed-pagination [data-slot="next"]:hover {
|
|
transform: scale(1.1) rotate(5deg);
|
|
box-shadow: 0 8px 25px -8px rgba(255, 107, 107, 0.6);
|
|
} |