1069 lines
22 KiB
CSS
1069 lines
22 KiB
CSS
/* 自定义样式文件 - 活牛采购智能数字化系统官网 */
|
|
|
|
/* 全局样式 */
|
|
:root {
|
|
--primary-color: #4CAF50; /* 农业绿色主色调 */
|
|
--primary-light: #81C784; /* 浅绿色 */
|
|
--primary-dark: #388E3C; /* 深绿色 */
|
|
--secondary-color: #1976D2; /* 深蓝色辅助色 */
|
|
--success-color: #00d474; /* 绿色成功色 */
|
|
--warning-color: #FF9800; /* 橙色警告色 */
|
|
--danger-color: #ff3c78; /* 粉色危险色 */
|
|
--light-color: #f8f9fa;
|
|
--dark-color: #121212; /* 深色背景 */
|
|
--gray-color: #2d2d2d; /* 灰色 */
|
|
--text-light: #f8f9fa; /* 浅色文字 */
|
|
--text-dark: #343a40; /* 深色文字 */
|
|
|
|
--font-family-base: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Source Han Sans CN';
|
|
--border-radius: 0.75rem;
|
|
--box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
|
|
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
--neon-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
|
|
--neon-shadow-hover: 0 0 20px rgba(76, 175, 80, 0.8);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family-base);
|
|
line-height: 1.6;
|
|
color: var(--text-dark);
|
|
background-color: #ffffff;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* 顶部联系栏 */
|
|
.top-bar {
|
|
font-size: 0.875rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.top-bar a:hover {
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
/* 导航栏样式增强 */
|
|
.navbar {
|
|
padding: 0.5rem 0;
|
|
transition: var(--transition);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.navbar.scrolled {
|
|
background: rgba(255, 255, 255, 0.95) !important;
|
|
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* 品牌logo样式 */
|
|
.logo-container {
|
|
width: 50px;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.brand-text .brand-name {
|
|
font-size: 1.25rem;
|
|
color: var(--text-light);
|
|
margin-bottom: -2px;
|
|
}
|
|
|
|
.brand-text .brand-subtitle {
|
|
font-size: 0.75rem;
|
|
color: rgba(248, 249, 250, 0.8);
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* 导航链接增强 */
|
|
.navbar-nav .nav-link {
|
|
font-weight: 500;
|
|
color: var(--text-light) !important;
|
|
transition: var(--transition);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 8px;
|
|
position: relative;
|
|
margin: 0 0.25rem;
|
|
}
|
|
|
|
.navbar-nav .nav-link:hover {
|
|
color: var(--primary-color) !important;
|
|
background: rgba(76, 175, 80, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.navbar-nav .nav-link.active {
|
|
color: var(--primary-color) !important;
|
|
background: rgba(76, 175, 80, 0.15);
|
|
box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
/* 下拉菜单 */
|
|
.dropdown-menu {
|
|
border: none;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
|
padding: 0.5rem 0;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.dropdown-item {
|
|
padding: 0.75rem 1.5rem;
|
|
transition: var(--transition);
|
|
border-radius: 8px;
|
|
margin: 0 0.5rem;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: rgba(76, 175, 80, 0.1);
|
|
color: var(--primary-color);
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
/* 英雄区域现代化设计 */
|
|
.hero-section {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background:
|
|
radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
|
|
radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
|
|
radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero-section .container {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* 英雄区域动画元素 */
|
|
.hero-bg-animation {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.floating-element {
|
|
position: absolute;
|
|
font-size: 2rem;
|
|
animation: float 6s ease-in-out infinite;
|
|
animation-delay: var(--delay);
|
|
left: var(--x);
|
|
top: var(--y);
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
|
50% { transform: translateY(-20px) rotate(5deg); }
|
|
}
|
|
|
|
/* 英雄内容样式 */
|
|
.hero-content {
|
|
color: white;
|
|
}
|
|
|
|
.hero-badge .badge {
|
|
border-radius: 25px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.hero-title {
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
margin-bottom: 1.5rem;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.25rem;
|
|
line-height: 1.6;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
max-width: 600px;
|
|
}
|
|
|
|
/* 英雄区域功能特性 */
|
|
.hero-features .feature-item {
|
|
padding: 1rem;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.hero-features .feature-item:hover {
|
|
transform: translateY(-5px);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* 按钮增强样式 */
|
|
.btn {
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
padding: 0.875rem 2rem;
|
|
transition: var(--transition);
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
|
|
}
|
|
|
|
.btn-outline-secondary {
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
color: white;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.btn-outline-secondary:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
transform: translateY(-3px);
|
|
color: white;
|
|
}
|
|
|
|
/* 英雄视觉区域 */
|
|
.hero-visual {
|
|
perspective: 1000px;
|
|
}
|
|
|
|
.hero-image-container {
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
.dashboard-mockup {
|
|
transform: rotateY(-5deg) rotateX(5deg);
|
|
transition: var(--transition);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.dashboard-mockup:hover {
|
|
transform: rotateY(0deg) rotateX(0deg) scale(1.02);
|
|
}
|
|
|
|
.floating-card {
|
|
animation: floatCard 4s ease-in-out infinite;
|
|
}
|
|
|
|
.floating-card:nth-child(2) {
|
|
animation-delay: 2s;
|
|
}
|
|
|
|
@keyframes floatCard {
|
|
0%, 100% { transform: translateY(0px); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
/* 滚动指示器 */
|
|
.scroll-indicator {
|
|
animation: bounce 2s infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
|
|
40% { transform: translateY(-10px); }
|
|
60% { transform: translateY(-5px); }
|
|
}
|
|
|
|
.animate-bounce {
|
|
animation: bounce 2s infinite;
|
|
}
|
|
|
|
/* 统计数据样式 */
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* 响应式设计优化 */
|
|
@media (max-width: 768px) {
|
|
.top-bar {
|
|
display: none;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.hero-actions .btn {
|
|
width: 100%;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.dashboard-mockup {
|
|
transform: none;
|
|
}
|
|
|
|
.floating-card {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.hero-features .col-6 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.hero-stats .col-4 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.brand-text .brand-name {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.brand-text .brand-subtitle {
|
|
font-size: 0.7rem;
|
|
}
|
|
}
|
|
|
|
/* 工具类 */
|
|
.text-shadow {
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.backdrop-blur {
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
vertical-align: text-bottom;
|
|
border: 0.2em solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spinner-border 0.75s linear infinite;
|
|
}
|
|
|
|
@keyframes spinner-border {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 动画效果增强 */
|
|
.fade-in-up {
|
|
animation: fadeInUp 0.8s ease-out forwards;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 图片优化 */
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--primary-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary-dark);
|
|
}
|
|
|
|
/* 返回顶部按钮 */
|
|
.back-to-top {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
display: none;
|
|
z-index: 1000;
|
|
transition: var(--transition);
|
|
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
|
|
}
|
|
|
|
.back-to-top:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
|
|
}
|
|
|
|
/* 导航栏动画 */
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
}
|
|
|
|
/* 按钮点击效果 */
|
|
.btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* 卡片悬停增强 */
|
|
.card {
|
|
transition: var(--transition);
|
|
border: none;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* 进度条样式 */
|
|
.progress {
|
|
height: 8px;
|
|
border-radius: 10px;
|
|
background: rgba(76, 175, 80, 0.1);
|
|
}
|
|
|
|
.progress-bar {
|
|
border-radius: 10px;
|
|
background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
|
|
}
|
|
|
|
/* 数字统计增强 */
|
|
.count-up {
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
/* 模态框动画 */
|
|
.modal-dialog {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 懒加载图片 */
|
|
img.lazy {
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
img.lazy.loaded {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 表单增强样式 */
|
|
.form-control:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
|
|
}
|
|
|
|
.form-control.is-valid {
|
|
border-color: var(--success-color);
|
|
}
|
|
|
|
.form-control.is-invalid {
|
|
border-color: var(--danger-color);
|
|
}
|
|
|
|
/* 提示框样式 */
|
|
.alert {
|
|
border: none;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* 打字机效果 */
|
|
.typewriter {
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
/* 粒子效果容器 */
|
|
.particles-container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 移动端优化 */
|
|
@media (max-width: 768px) {
|
|
.back-to-top {
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 45px;
|
|
height: 45px;
|
|
}
|
|
|
|
.floating-element {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 页面切换动画 */
|
|
.page-transition {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
.page-transition.loaded {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* 高级动画效果 */
|
|
@keyframes pulseGlow {
|
|
0%, 100% {
|
|
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
|
|
}
|
|
}
|
|
|
|
.pulse-glow {
|
|
animation: pulseGlow 2s infinite;
|
|
}
|
|
|
|
/* 文字渐变效果 */
|
|
.gradient-text {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* 毛玻璃效果 */
|
|
.glass-effect {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* 3D变换效果 */
|
|
.transform-3d {
|
|
transform-style: preserve-3d;
|
|
perspective: 1000px;
|
|
}
|
|
|
|
.transform-3d:hover {
|
|
transform: rotateY(5deg) rotateX(5deg);
|
|
}
|
|
|
|
/* 无障碍优化 */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
/* 焦点可见性 */
|
|
.btn:focus-visible,
|
|
.nav-link:focus-visible,
|
|
.form-control:focus-visible {
|
|
outline: 2px solid var(--primary-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* 打印样式 */
|
|
@media print {
|
|
.navbar,
|
|
.back-to-top,
|
|
.floating-element {
|
|
display: none !important;
|
|
}
|
|
|
|
.hero-section {
|
|
background: white !important;
|
|
color: black !important;
|
|
}
|
|
}
|
|
|
|
/* 导航栏样式 */
|
|
.navbar {
|
|
padding: 1rem 0;
|
|
transition: var(--transition);
|
|
background: rgba(30, 30, 30, 0.8) !important;
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
color: var(--text-light) !important;
|
|
text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
|
|
}
|
|
|
|
.navbar-nav .nav-link {
|
|
font-weight: 500;
|
|
color: var(--text-light) !important;
|
|
transition: var(--transition);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--border-radius);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.navbar-nav .nav-link::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
|
|
transition: 0.5s;
|
|
}
|
|
|
|
.navbar-nav .nav-link:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.navbar-nav .nav-link:hover {
|
|
color: var(--secondary-color) !important;
|
|
box-shadow: var(--neon-shadow);
|
|
}
|
|
|
|
.navbar-nav .nav-link.active {
|
|
color: var(--secondary-color) !important;
|
|
background: rgba(76, 175, 80, 0.1);
|
|
box-shadow: var(--neon-shadow);
|
|
}
|
|
|
|
/* 英雄区域样式 */
|
|
.hero-section {
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
|
|
color: var(--text-light);
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 6rem 0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.hero-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: radial-gradient(circle at 10% 20%, rgba(111, 66, 193, 0.1) 0%, transparent 20%),
|
|
radial-gradient(circle at 90% 80%, rgba(0, 198, 255, 0.1) 0%, transparent 20%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero-section .container {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hero-section h1 {
|
|
font-weight: 800;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 3.5rem;
|
|
background: linear-gradient(to right, var(--secondary-color), var(--primary-light));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
text-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
|
|
}
|
|
|
|
.hero-section .lead {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
opacity: 0.9;
|
|
max-width: 800px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* 功能特性卡片样式 */
|
|
.feature-icon {
|
|
transition: var(--transition);
|
|
width: 80px;
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1.5rem;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
|
box-shadow: var(--neon-shadow);
|
|
color: var(--text-light);
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.card {
|
|
transition: var(--transition);
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
background: rgba(45, 45, 45, 0.7);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(76, 175, 80, 0.2);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-10px) scale(1.02);
|
|
box-shadow: var(--neon-shadow-hover), 0 15px 40px rgba(0, 0, 0, 0.4);
|
|
border: 1px solid rgba(76, 175, 80, 0.5);
|
|
}
|
|
|
|
.card:hover .feature-icon {
|
|
transform: scale(1.1) rotate(5deg);
|
|
box-shadow: var(--neon-shadow-hover);
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.btn {
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
padding: 0.875rem 1.75rem;
|
|
transition: var(--transition);
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
}
|
|
|
|
.btn::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: 0.5s;
|
|
z-index: -1;
|
|
}
|
|
|
|
.btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
|
|
border: none;
|
|
box-shadow: var(--neon-shadow);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--neon-shadow-hover), 0 6px 20px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.btn-outline-primary {
|
|
border: 2px solid var(--primary-color);
|
|
color: var(--primary-color);
|
|
background: transparent;
|
|
box-shadow: var(--neon-shadow);
|
|
}
|
|
|
|
.btn-outline-primary:hover {
|
|
background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
|
|
color: white;
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--neon-shadow-hover);
|
|
border: 2px solid var(--primary-light);
|
|
}
|
|
|
|
/* 页脚样式 */
|
|
footer {
|
|
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
|
|
border-top: 1px solid rgba(111, 66, 193, 0.2);
|
|
}
|
|
|
|
footer h5, footer h6 {
|
|
color: var(--text-light) !important;
|
|
text-shadow: 0 0 10px rgba(111, 66, 193, 0.3);
|
|
}
|
|
|
|
footer a {
|
|
transition: var(--transition);
|
|
color: var(--text-light) !important;
|
|
}
|
|
|
|
footer a:hover {
|
|
color: var(--secondary-color) !important;
|
|
text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.hero-section {
|
|
padding: 3rem 0;
|
|
}
|
|
|
|
.hero-section h1 {
|
|
font-size: 2.8rem;
|
|
}
|
|
|
|
.hero-section .lead {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.card {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.hero-section {
|
|
text-align: center;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.hero-section h1 {
|
|
font-size: 2.2rem;
|
|
}
|
|
|
|
.hero-section .lead {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
margin-bottom: 0.75rem;
|
|
padding: 0.75rem 1.25rem;
|
|
}
|
|
|
|
.feature-icon {
|
|
margin-bottom: 1rem;
|
|
width: 50px;
|
|
height: 50px;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.navbar-nav .nav-link {
|
|
text-align: center;
|
|
margin: 0.25rem 0;
|
|
}
|
|
}
|
|
|
|
/* 工具类 */
|
|
.text-shadow {
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* 新增:加载动画 */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
vertical-align: text-bottom;
|
|
border: 0.2em solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spinner-border 0.75s linear infinite;
|
|
}
|
|
|
|
@keyframes spinner-border {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 新增:图片占位符样式 */
|
|
.placeholder-image {
|
|
background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
}
|
|
|
|
/* 新增:表单验证样式 */
|
|
.form-control.is-invalid {
|
|
border-color: var(--danger-color);
|
|
}
|
|
|
|
.invalid-feedback {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 0.25rem;
|
|
font-size: 0.875em;
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
/* 新增:动画效果 */
|
|
.fade-in-up {
|
|
animation: fadeInUp 0.6s ease-out forwards;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 新增:回到顶部按钮样式 */
|
|
.back-to-top {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
display: none;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.back-to-top:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
|
|
}
|
|
|
|
.bg-gradient-primary {
|
|
background: linear-gradient(135deg, var(--primary-color), #0056b3);
|
|
}
|
|
|
|
.bg-gradient-dark {
|
|
background: linear-gradient(135deg, var(--dark-color), #2c3e50);
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fade-in-up {
|
|
animation: fadeInUp 0.6s ease-out;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
transform: scale(1.05);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.pulse {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--primary-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #0056b3;
|
|
} |