NAC_Blockchain/_archive/nac-onboarding-system-legacy/static/css/style.css

662 lines
11 KiB
CSS

/* NAC资产一键上链系统 - 样式文件 */
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #2563eb;
--secondary-color: #7c3aed;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--dark-color: #1f2937;
--light-color: #f9fafb;
--border-color: #e5e7eb;
--text-color: #374151;
--text-light: #6b7280;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--light-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 头部样式 */
header {
background-color: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo h1 {
font-size: 1.5rem;
color: var(--primary-color);
margin-bottom: 0.25rem;
}
.logo p {
font-size: 0.875rem;
color: var(--text-light);
}
nav {
display: flex;
gap: 1.5rem;
}
nav a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: color 0.3s;
}
nav a:hover,
nav a.active {
color: var(--primary-color);
}
/* 主内容区域 */
main {
padding: 2rem 0;
}
/* Hero区域 */
.hero {
text-align: center;
padding: 4rem 0;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border-radius: 1rem;
margin-bottom: 3rem;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.25rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
}
/* 按钮样式 */
.btn {
display: inline-block;
padding: 0.75rem 2rem;
border-radius: 0.5rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s;
border: none;
cursor: pointer;
font-size: 1rem;
}
.btn-primary {
background-color: white;
color: var(--primary-color);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-secondary {
background-color: transparent;
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background-color: white;
color: var(--primary-color);
}
.btn-success {
background-color: var(--success-color);
color: white;
}
.btn-danger {
background-color: var(--danger-color);
color: white;
}
/* 功能卡片 */
.features {
margin-bottom: 3rem;
}
.features h3 {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
color: var(--dark-color);
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.feature-card {
background: white;
padding: 2rem;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.feature-card h4 {
font-size: 1.25rem;
margin-bottom: 0.75rem;
color: var(--dark-color);
}
.feature-card p {
color: var(--text-light);
line-height: 1.6;
}
/* 流程步骤 */
.process {
margin-bottom: 3rem;
}
.process h3 {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
color: var(--dark-color);
}
.process-steps {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 1rem;
padding: 2rem;
background: white;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.step {
text-align: center;
flex: 0 0 auto;
}
.step-number {
width: 50px;
height: 50px;
background: var(--primary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.25rem;
margin: 0 auto 0.5rem;
}
.step h4 {
font-size: 0.875rem;
margin-bottom: 0.25rem;
color: var(--dark-color);
}
.step p {
font-size: 0.75rem;
color: var(--text-light);
}
.step-arrow {
font-size: 1.5rem;
color: var(--primary-color);
flex: 0 0 auto;
}
/* 技术栈 */
.tech-stack {
margin-bottom: 3rem;
}
.tech-stack h3 {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
color: var(--dark-color);
}
.tech-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.tech-item {
background: white;
padding: 1.5rem;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
text-align: center;
}
.tech-item h4 {
font-size: 1.125rem;
margin-bottom: 0.5rem;
color: var(--primary-color);
}
.tech-item p {
font-size: 0.875rem;
color: var(--text-light);
}
/* 表单样式 */
.form-container {
max-width: 500px;
margin: 2rem auto;
background: white;
padding: 2rem;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-container h2 {
text-align: center;
margin-bottom: 2rem;
color: var(--dark-color);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--dark-color);
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.form-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
/* 表格样式 */
.table-container {
background: white;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
}
thead {
background-color: var(--light-color);
}
th, td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
th {
font-weight: 600;
color: var(--dark-color);
}
tbody tr:hover {
background-color: var(--light-color);
}
/* 状态标签 */
.status-badge {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 1rem;
font-size: 0.875rem;
font-weight: 500;
}
.status-pending {
background-color: #fef3c7;
color: #92400e;
}
.status-processing {
background-color: #dbeafe;
color: #1e40af;
}
.status-success {
background-color: #d1fae5;
color: #065f46;
}
.status-failed {
background-color: #fee2e2;
color: #991b1b;
}
/* 进度条 */
.progress-container {
background-color: var(--border-color);
border-radius: 1rem;
overflow: hidden;
height: 20px;
margin: 1rem 0;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
transition: width 0.3s;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 0.75rem;
font-weight: 600;
}
/* 卡片样式 */
.card {
background: white;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--dark-color);
}
.card-body {
color: var(--text-color);
}
/* 仪表板样式 */
.dashboard {
padding: 2rem 0;
}
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.dashboard-title {
font-size: 2rem;
color: var(--dark-color);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background: white;
padding: 1.5rem;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stat-label {
font-size: 0.875rem;
color: var(--text-light);
margin-bottom: 0.5rem;
}
.stat-value {
font-size: 2rem;
font-weight: 700;
color: var(--dark-color);
}
.stat-icon {
font-size: 2.5rem;
opacity: 0.2;
float: right;
}
/* 底部样式 */
footer {
background-color: var(--dark-color);
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 4rem;
}
footer p {
margin: 0.5rem 0;
opacity: 0.8;
}
/* 响应式设计 */
@media (max-width: 768px) {
.hero h2 {
font-size: 1.75rem;
}
.hero p {
font-size: 1rem;
}
.cta-buttons {
flex-direction: column;
}
.process-steps {
flex-direction: column;
}
.step-arrow {
transform: rotate(90deg);
}
header .container {
flex-direction: column;
gap: 1rem;
}
nav {
flex-wrap: wrap;
justify-content: center;
}
}
/* 加载动画 */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid var(--border-color);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 提示消息 */
.alert {
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
}
.alert-success {
background-color: #d1fae5;
color: #065f46;
border: 1px solid #10b981;
}
.alert-error {
background-color: #fee2e2;
color: #991b1b;
border: 1px solid #ef4444;
}
.alert-warning {
background-color: #fef3c7;
color: #92400e;
border: 1px solid #f59e0b;
}
.alert-info {
background-color: #dbeafe;
color: #1e40af;
border: 1px solid #2563eb;
}
/* 模态框 */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 2000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: white;
border-radius: 0.75rem;
padding: 2rem;
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.modal-title {
font-size: 1.5rem;
font-weight: 600;
color: var(--dark-color);
}
.modal-close {
font-size: 1.5rem;
cursor: pointer;
color: var(--text-light);
background: none;
border: none;
}
.modal-close:hover {
color: var(--dark-color);
}