450 lines
9.7 KiB
CSS
450 lines
9.7 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-light);
|
|
background-color: var(--dark-color);
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* 导航栏样式 */
|
|
.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;
|
|
} |