feat: 深度优化能源订单班页面布局

详细说明:
- 左右交替图文布局: Section 2采用split-layout,图文交替展示I/O配置
- Timeline时间轴: Section 3使用垂直时间轴展示机器人分拣流程
- 全宽视觉分隔区: 在section间添加视差滚动的全屏图片分隔
- 环形进度条: 替换普通统计卡片,使用SVG环形进度条展示关键数据
- 微交互动画: 添加涟漪效果、磁吸效果、边框光效、呼吸动画等
- 滚动条美化: 自定义滚动条样式
- 焦点优化: 增强可访问性的焦点显示

影响文件:
- web_frontend/web_result/order-classes/energy/index.html
- web_frontend/web_result/order-classes/energy/css/styles.css

影响模块: 能源订单班展示页面布局系统
This commit is contained in:
Yep_Q
2025-10-09 14:50:08 +08:00
parent 86406c7567
commit 061fdfa685
2 changed files with 904 additions and 57 deletions

View File

@@ -673,6 +673,382 @@ body.dark-theme tr:hover {
grid-template-columns: repeat(3, 1fr);
}
/* ========== 左右交替图文布局 ========== */
.split-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--spacing-2xl);
align-items: center;
margin: var(--spacing-2xl) 0;
}
.split-layout-reverse {
direction: rtl;
}
.split-layout-reverse > * {
direction: ltr;
}
.split-layout-image {
position: relative;
border-radius: var(--radius-2xl);
overflow: hidden;
aspect-ratio: 4/3;
box-shadow: var(--shadow-xl);
transition: all var(--transition-base);
}
.split-layout-image:hover {
transform: scale(1.02);
box-shadow: var(--shadow-xl), var(--shadow-orange);
}
.split-layout-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.split-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(0,0,0,0.3), transparent);
display: flex;
align-items: flex-start;
justify-content: flex-end;
padding: var(--spacing-lg);
}
.split-badge {
background: var(--primary-orange);
color: white;
padding: var(--spacing-sm) var(--spacing-lg);
border-radius: var(--radius-full);
font-weight: var(--font-bold);
font-size: var(--text-base);
box-shadow: var(--shadow-lg);
}
.split-layout-content {
background: var(--bg-card);
backdrop-filter: blur(15px);
padding: var(--spacing-2xl);
border-radius: var(--radius-2xl);
border: 2px solid var(--border-light);
box-shadow: var(--shadow-lg);
}
.split-title {
font-size: var(--text-2xl);
color: var(--primary-orange);
margin-bottom: var(--spacing-lg);
display: flex;
align-items: center;
gap: var(--spacing-md);
}
.split-title i {
width: 32px !important;
height: 32px !important;
}
@media (max-width: 1024px) {
.split-layout,
.split-layout-reverse {
grid-template-columns: 1fr;
direction: ltr;
}
.split-layout-image {
order: 1;
}
.split-layout-content {
order: 2;
}
}
/* ========== 全宽视觉分隔区 ========== */
.visual-divider {
height: 400px;
background-size: cover;
background-position: center;
background-attachment: fixed;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.visual-divider::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg,
rgba(120, 53, 15, 0.85) 0%,
rgba(217, 119, 6, 0.7) 100%
);
backdrop-filter: blur(2px);
}
body:not(.dark-theme) .visual-divider::before {
background: linear-gradient(135deg,
rgba(255, 251, 235, 0.85) 0%,
rgba(254, 243, 199, 0.9) 100%
);
}
.divider-content {
position: relative;
z-index: 1;
text-align: center;
color: var(--text-light);
animation: fadeInUp 1s ease;
}
.divider-icon {
width: 80px;
height: 80px;
margin: 0 auto var(--spacing-lg);
background: var(--bg-card);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 3px solid var(--primary-orange);
box-shadow: var(--shadow-xl), 0 0 30px rgba(245, 158, 11, 0.5);
animation: pulse 2s ease-in-out infinite;
}
.divider-icon i {
width: 40px !important;
height: 40px !important;
color: var(--primary-orange);
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
box-shadow: var(--shadow-xl), 0 0 30px rgba(245, 158, 11, 0.5);
}
50% {
transform: scale(1.05);
box-shadow: var(--shadow-xl), 0 0 50px rgba(245, 158, 11, 0.8);
}
}
.divider-content h3 {
font-size: var(--text-4xl);
font-weight: var(--font-bold);
margin-bottom: var(--spacing-md);
text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.divider-content p {
font-size: var(--text-xl);
opacity: 0.95;
text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
.visual-divider {
height: 300px;
background-attachment: scroll;
}
.divider-icon {
width: 60px;
height: 60px;
}
.divider-icon i {
width: 30px !important;
height: 30px !important;
}
.divider-content h3 {
font-size: var(--text-2xl);
}
.divider-content p {
font-size: var(--text-base);
}
}
/* ========== Timeline时间轴布局 ========== */
.timeline-container {
margin: var(--spacing-2xl) 0;
}
.timeline-title {
font-size: var(--text-3xl);
color: var(--primary-orange);
margin-bottom: var(--spacing-2xl);
display: flex;
align-items: center;
gap: var(--spacing-md);
text-align: center;
justify-content: center;
}
.timeline-title i {
width: 40px !important;
height: 40px !important;
}
.timeline {
position: relative;
max-width: 1000px;
margin: 0 auto;
padding: var(--spacing-xl) 0;
}
/* 时间轴中心线 */
.timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 3px;
background: linear-gradient(to bottom,
transparent,
var(--primary-orange) 10%,
var(--primary-orange) 90%,
transparent
);
transform: translateX(-50%);
}
.timeline-item {
position: relative;
display: flex;
align-items: center;
margin-bottom: var(--spacing-2xl);
}
.timeline-item:nth-child(odd) {
justify-content: flex-start;
}
.timeline-item:nth-child(even) {
justify-content: flex-end;
}
.timeline-marker {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 60px;
border-radius: 50%;
background: var(--bg-card);
border: 4px solid var(--primary-orange);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
box-shadow: var(--shadow-lg), 0 0 0 8px var(--bg-dark);
transition: all var(--transition-base);
}
.timeline-marker i {
width: 28px !important;
height: 28px !important;
color: var(--primary-orange);
}
.timeline-item:hover .timeline-marker {
transform: translateX(-50%) scale(1.1);
box-shadow: var(--shadow-xl), 0 0 0 12px var(--bg-dark), var(--shadow-orange);
}
.timeline-content {
width: calc(50% - 60px);
background: var(--bg-card);
backdrop-filter: blur(15px);
padding: var(--spacing-xl);
border-radius: var(--radius-xl);
border: 2px solid var(--border-light);
box-shadow: var(--shadow-md);
transition: all var(--transition-base);
}
.timeline-item:nth-child(odd) .timeline-content {
margin-right: calc(50% + 40px);
}
.timeline-item:nth-child(even) .timeline-content {
margin-left: calc(50% + 40px);
}
.timeline-content:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-xl), var(--shadow-orange);
border-color: var(--primary-orange);
}
.timeline-step {
font-size: var(--text-sm);
color: var(--primary-orange);
font-weight: var(--font-bold);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: var(--spacing-xs);
}
.timeline-content h4 {
font-size: var(--text-xl);
color: var(--text-light);
margin-bottom: var(--spacing-sm);
font-weight: var(--font-semibold);
}
.timeline-content p {
color: var(--text-gray);
font-size: var(--text-base);
line-height: 1.6;
margin-bottom: var(--spacing-md);
}
.timeline-badge {
display: inline-block;
padding: var(--spacing-xs) var(--spacing-md);
background: var(--active-bg);
color: var(--primary-orange);
border-radius: var(--radius-full);
font-size: var(--text-sm);
font-weight: var(--font-medium);
}
@media (max-width: 768px) {
.timeline::before {
left: 30px;
}
.timeline-item {
justify-content: flex-end !important;
}
.timeline-marker {
left: 30px;
}
.timeline-content {
width: calc(100% - 100px);
margin-left: 100px !important;
margin-right: 0 !important;
}
}
/* ========== Bento Grid布局 - 不等大小网格 ========== */
.bento-grid {
display: grid;
@@ -877,6 +1253,104 @@ body.dark-theme tr:hover {
text-shadow: none;
}
/* ========== 增强数据可视化 - 环形进度条 ========== */
.stats-enhanced {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--spacing-xl);
padding: var(--spacing-xl);
background: var(--bg-overlay);
backdrop-filter: blur(15px);
border-radius: var(--radius-2xl);
border: 2px solid var(--border-light);
box-shadow: var(--shadow-lg);
}
.stat-circle-item {
text-align: center;
transition: all var(--transition-base);
}
.stat-circle-item:hover {
transform: translateY(-8px);
}
.circle-progress {
position: relative;
width: 160px;
height: 160px;
margin: 0 auto var(--spacing-md);
}
.circle-progress svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.circle-bg,
.circle-fill {
fill: none;
stroke-width: 8;
}
.circle-bg {
stroke: var(--border-light);
}
.circle-fill {
stroke: var(--primary-orange);
stroke-linecap: round;
stroke-dasharray: 326.73; /* 2 * π * r = 2 * π * 52 */
stroke-dashoffset: calc(326.73 * (1 - var(--progress, 0) / 100));
transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}
.circle-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.circle-value {
font-size: var(--text-3xl);
font-weight: var(--font-bold);
color: var(--primary-orange);
line-height: 1;
margin-bottom: var(--spacing-xs);
}
.circle-unit {
font-size: var(--text-sm);
color: var(--text-gray);
font-weight: var(--font-medium);
}
.stat-circle-item .stat-label {
font-size: var(--text-base);
color: var(--text-light);
font-weight: var(--font-semibold);
}
@media (max-width: 768px) {
.stats-enhanced {
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-lg);
}
.circle-progress {
width: 120px;
height: 120px;
}
.circle-value {
font-size: var(--text-2xl);
}
}
/* ========== 表格 ========== */
.table-container {
overflow-x: auto;
@@ -1204,6 +1678,216 @@ tr:hover {
left: 100%;
}
/* ========== 微交互动画细节 ========== */
/* 按钮点击涟漪效果 */
.nav-item,
.hero-badge,
.timeline-marker {
position: relative;
overflow: hidden;
}
.nav-item::after,
.hero-badge::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent);
border-radius: 50%;
opacity: 0;
transition: all 0.5s ease;
pointer-events: none;
}
.nav-item:active::after,
.hero-badge:active::after {
transform: translate(-50%, -50%) scale(2.5);
opacity: 1;
transition: 0s;
}
/* 图片磁吸效果 */
.image-container {
cursor: pointer;
}
.image-container::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
width: 60px;
height: 60px;
background: rgba(245, 158, 11, 0.9);
border-radius: 50%;
opacity: 0;
transition: all 0.3s ease;
pointer-events: none;
}
.image-container::before {
content: '👁';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
opacity: 0;
z-index: 10;
transition: all 0.3s ease;
pointer-events: none;
}
.image-container:hover::after {
transform: translate(-50%, -50%) scale(1);
opacity: 0.8;
}
.image-container:hover::before {
opacity: 1;
}
/* 链接下划线动画 */
.feature-list li {
position: relative;
}
.feature-list li::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background: var(--primary-orange);
transition: width 0.3s ease;
}
.feature-list li:hover::after {
width: 100%;
}
/* 卡片边框光效 */
@keyframes borderGlow {
0%, 100% {
box-shadow:
var(--shadow-md),
0 0 20px rgba(245, 158, 11, 0.3),
inset 0 0 20px rgba(245, 158, 11, 0.1);
}
50% {
box-shadow:
var(--shadow-lg),
0 0 30px rgba(245, 158, 11, 0.5),
inset 0 0 30px rgba(245, 158, 11, 0.2);
}
}
.card:hover {
animation: borderGlow 2s ease-in-out infinite;
}
/* 文字打字机效果类 */
.typewriter {
overflow: hidden;
border-right: 2px solid var(--primary-orange);
white-space: nowrap;
animation: typing 3.5s steps(40) 1s 1 normal both,
blink 0.75s step-end infinite;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink {
50% { border-color: transparent; }
}
/* 表格行悬停效果 */
tr {
transition: all var(--transition-fast);
position: relative;
}
tr::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 3px;
height: 0;
background: var(--primary-orange);
transition: height var(--transition-base);
}
tr:hover::before {
height: 100%;
}
/* Agent头像呼吸效果 */
.agent-avatar {
animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
0%, 100% {
box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
50% {
box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}
}
/* 滚动条美化 */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--bg-semi-dark);
}
::-webkit-scrollbar-thumb {
background: var(--primary-orange);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-amber);
}
/* 选中文本样式 */
::selection {
background: var(--primary-orange);
color: white;
}
::-moz-selection {
background: var(--primary-orange);
color: white;
}
/* 焦点可见性优化 */
*:focus-visible {
outline: 2px solid var(--primary-orange);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
/* 工具提示hover */
[title] {
position: relative;
}
/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }