/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    background-image: url('../images/bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 170, 255, 0.02) 0%, transparent 70%);
    animation: backgroundShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }

    33% {
        opacity: 0.5;
        transform: scale(1.1) rotate(1deg);
    }

    66% {
        opacity: 0.4;
        transform: scale(0.9) rotate(-1deg);
    }
}

.header {
    background-image: url('../images/top.png');
    height: 11vh;
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* animation: headerPulse 12s ease-in-out infinite; */
}

@keyframes headerPulse {

    0%,
    100% {
        filter: brightness(1) saturate(1);
    }

    50% {
        filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    }
}

.header .title {
    font-size: 2vw;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #00d4ff, #4FC3F7, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 1vh;
    letter-spacing: 5px;
    position: relative;
    z-index: 2;
    animation: gradientShift 4s ease-in-out infinite;
}

.container {
    width: 100vw;
    height: calc(100vh-11vh);
    display: grid;
    justify-content: center;
    gap: 0 1.5vh;
    grid-template-columns: 67.5vw 29.5vw 0vw;
    grid-template-rows: 33vh 32vh 20vh;
    padding: 1vh;
}

.title_bg {
    position: absolute;
    top: 10px;
    left: 10px;
    background: url('../images/title_bg.png');
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    text-indent: 15px;
    width: 220px;
    height: 36px;
    color: white;
    font-size: 0.9vw;
}



.left-top {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    background-image: url('../images/left_bg1.png');
    background-size: 100% 100%;
    background-position: center;
    margin-bottom: 1vh;
}

.left-bottom {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    background-image: url('../images/left_bg2.png');
    background-size: 100% 100%;
    background-position: center;
}

.middle {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 3;
    background-image: url('../images/mid_bg.png');
    background-size: 100% 100%;
    background-position: center;
    padding: 1vh 1vw;
}

/* 材料图表样式 */
#materialChart {
    position: relative;
}

/* 自定义图例两列布局 */
#materialChart .echarts-legend {
    display: flex;
    flex-wrap: wrap;
    width: 120px !important;
}

#materialChart .echarts-legend-item {
    width: 50% !important;
    margin-bottom: 5px !important;
}

.mid_top {
    position: absolute;
    top: 0;
    left: 6%;
    background-image: url('../images/mid_top.png');
    background-size: 100% 100%;
    width: 497px;
    height: 30px;
    display: flex;
    justify-content: center;
    color: white;
    font-size: 0.9vw;
}

.mid_bottom {
    background-image: url('../images/mid_bottom.png');
    background-size: 100% 100%;
    /*width: 677px;*/
    height: 380px;
}

.mid_icon {
    position: relative;
    background-image: url('../images/mid_icon.png');
    background-size: 100% 100%;
    width: 140px;
    height: 66px;
    /* animation: warehouseFloat 6s ease-in-out infinite; */
}

@keyframes warehouseFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
        filter: brightness(1.1) drop-shadow(0 5px 15px rgba(0, 212, 255, 0.4));
    }
}

.icon_text {
    position: absolute;
    top: 27%;
    left: 30%;
    color: white;
    font-size: 1vw;
}

.mid_row {
    width: 75%;
    height: 18vh;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    position: absolute;
    top: 5%;
    left: 28%;
}

.text {
    color: white;
    font-size: 0.9vw;
    margin-right: 1vw;
}

.count {
    color: #15fff7;
    font-size: 1.4vw;
    margin: 0 0.3vw 0 0;
}

.unit {
    color: #15fff7;
    font-size: 0.8vw;
    margin-right: 1vw;
}

.right-top {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    background-image: url('../images/right_bg1.png');
    background-size: 100% 100%;
    background-position: center;
    margin-bottom: 1vh;
}

.icon1_bg {
    width: 50%;
    margin: 4vh auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/icon1_bg.png');
    background-size: 100% 100%;
    width: 269px;
    height: 102px;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 212, 255, 0.4)) drop-shadow(0 0 45px rgba(0, 212, 255, 0.2));
    transition: filter 0.3s ease;
}

.icon1_bg:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.3));
}



.right-bottom {
    position: relative;
    grid-column: 3;
    grid-row: 2;
    background-image: url('../images/right_bg2.png');
    background-size: 100% 100%;
    background-position: center;
}

.panel-content {
    height: calc(100% - 2vh);
    display: flex;
    flex-direction: column;
    font-size: 1.5vw;
    padding: 1vh;
}

.panel-content2 {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.5vw;
    padding: 1vh;
}


/* 未使用的动画 - 已删除
@keyframes glow {
    from {
        text-shadow: 0 0 1vw #00d4ff, 0 0 2vw #00d4ff;
    }

    to {
        text-shadow: 0 0 0.5vw #00d4ff, 0 0 1vw #00d4ff;
    }
}
*/

/* 页面整体动画效果 - 已禁用，删除未使用的动画 */

/* @keyframes pageBreath {

    0%,
    100% {
        filter: brightness(1) contrast(1);
    }

    50% {
        filter: brightness(1.05) contrast(1.02);
    }
} */

/* 页面淡入动画 - 未使用，已删除 */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* 面板渐入动画 - 不同方向进入 */
.left-top,
.left-bottom {
    animation: slideInFromLeft 1.5s ease-out forwards;
    opacity: 0;
}

.middle {
    animation: slideInFromBottom 1.5s ease-out forwards;
    opacity: 0;
}

.right-top,
.right-bottom {
    animation: slideInFromRight 1.5s ease-out forwards;
    opacity: 0;
}

.middle {
    animation-delay: 0.2s;
}

.left-top {
    animation-delay: 0.8s;
}

.left-bottom {
    animation-delay: 1s;
}

.right-top {
    animation-delay: 0.8s;
}

.right-bottom {
    animation-delay: 1s;
}

/* 从左边进入 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从下方进入 */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 从右边进入 */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 标题发光动画 - 已禁用 */
/* .header .title {
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff, 0 0 15px #00d4ff;
} */

@keyframes titleGlow {
    from {
        text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff, 0 0 15px #00d4ff;
    }

    to {
        text-shadow: 0 0 8px #00d4ff, 0 0 15px #00d4ff, 0 0 20px #00d4ff, 0 0 25px #00d4ff;
    }
}

/* 数字跳动动画 - 已禁用 */
/* .count {
    animation: numberPulse 2s ease-in-out infinite;
} */

@keyframes numberPulse {

    0%,
    100% {
        transform: scale(1);
        color: #15fff7;
    }

    50% {
        transform: scale(1.05);
        color: #00d4ff;
        text-shadow: 0 0 10px #00d4ff;
    }
}

/* 图表容器10秒循环动画 - 已禁用 */
/* .chart-container,
.chart-container2,
.chart-container3 {
    animation: chartPulse 10s ease-in-out infinite;
} */

@keyframes chartPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }

    25% {
        transform: scale(1.02);
        filter: brightness(1.1) saturate(1.1);
    }

    50% {
        transform: scale(1.01);
        filter: brightness(1.05) saturate(1.05);
    }

    75% {
        transform: scale(1.02);
        filter: brightness(1.1) saturate(1.1);
    }
}

/* 背景光效动画 */
.left-top::before,
.left-bottom::before,
.middle::before,
.right-top::before,
.right-bottom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent, rgba(0, 255, 255, 0.1), transparent);
    background-size: 400% 400%;
    animation: borderGlow 8s ease-in-out infinite;
    z-index: -1;
    border-radius: inherit;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    /* .panel-title 类未使用，已删除 */

    .panel-content {
        font-size: 2vw;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
    }

    .left-top {
        grid-column: 1;
        grid-row: 1;
    }

    .left-bottom {
        grid-column: 1;
        grid-row: 2;
    }

    .middle {
        grid-column: 1;
        grid-row: 3;
    }

    .right-top {
        grid-column: 1;
        grid-row: 4;
    }

    .right-bottom {
        grid-column: 1;
        grid-row: 5;
    }
}

/* 表格容器样式 */
.table-container {
    height: 60vh;
    overflow: hidden;
    margin-top: 0.5vh;
    position: relative;
    border-radius: 8px;
    background: rgba(0, 20, 40, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

/* 表格容器渐变遮罩 */
.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 20, 40, 0.8), transparent);
    z-index: 10;
    pointer-events: none;
}

.table-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(0, 20, 40, 0.8), transparent);
    z-index: 10;
    pointer-events: none;
}

/* 表格样式 */
.status-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: none;
    /*animation: scrollUp 20s linear infinite;*/
}

/* 表格发光动画 - 已禁用，删除未使用的动画 */
/* @keyframes tableGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    }
} */

.status-table th,
.status-table td {
    padding: 1.8vh 0.5vw;
    text-align: left;
    border: none;
    font-size: 0.8vw;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.6;
}

.status-table th {
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 40, 80, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 奇数行背景色 - 深色 */
.status-table tbody tr:nth-child(odd) {
    background: #04799F;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

/* 偶数行背景色 - 浅色 */
.status-table tbody tr:nth-child(even) {
    background: rgba(0, 50, 80, 0.4);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.status-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.3) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    border-left: 3px solid #00d4ff;
    position: relative;
    z-index: 5;
}

.status-table tbody tr:hover td {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* 向上滚动动画 */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* 暂停动画当鼠标悬停在容器上时 */
.table-container:hover .status-table {
    animation-play-state: paused;
}

.status-in {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    padding: 0.1vh 0.1vw;
    border-radius: 0.5vw;
    font-size: 0.8vw;
    text-shadow: 0 0 0.3vw #00ff88;
    border: none;
    /* animation: statusInBlink 3s ease-in-out infinite; */
}

/* 状态闪烁动画 - 已禁用，删除未使用的动画 */
/* @keyframes statusInBlink {

    0%,
    80%,
    100% {
        background: rgba(0, 255, 136, 0.2);
        text-shadow: 0 0 0.3vw #00ff88;
    }

    90% {
        background: rgba(0, 255, 136, 0.4);
        text-shadow: 0 0 0.6vw #00ff88, 0 0 1vw #00ff88;
    }
} */

.status-out {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 0.3vh 0.8vw;
    border-radius: 0.5vw;
    font-size: 0.8vw;
    text-shadow: 0 0 0.3vw #ff6b6b;
    border: none;
    /* animation: statusOutBlink 3s ease-in-out infinite; */
}

/* 状态闪烁动画 - 已禁用，删除未使用的动画 */
/* @keyframes statusOutBlink {

    0%,
    80%,
    100% {
        background: rgba(255, 107, 107, 0.2);
        text-shadow: 0 0 0.3vw #ff6b6b;
    }

    90% {
        background: rgba(255, 107, 107, 0.4);
        text-shadow: 0 0 0.6vw #ff6b6b, 0 0 1vw #ff6b6b;
    }
} */

/* 图表容器样式 */
.chart-container {
    width: 100%;
    height: 46vh;
    margin-top: 4vh;
}

.chart-container2 {
    width: 100%;
    height: 46vh;
    margin-top: 3vh;
    overflow: visible;
}

.chart-container3 {
    width: 100%;
    height: 28vh;
    margin-top: 4vh;
}

/* 进度条样式 */
.progress-container {
    margin-top: 1vh;
    padding: 0 1vw;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5vh;
    gap: 1vw;
}

.progress-label {
    color: #ffffff;
    font-size: 0.9vw;
    min-width: 3vw;
    text-align: left;
}

.progress-bar {
    flex: 1;
    height: 2vh;
    background: rgba(0, 50, 80, 0.6);
    border-radius: 1vh;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff 0%, #00d4ff 50%, #00aadd 100%);
    border-radius: 1vh;
    transition: width 0.8s ease-in-out;
    box-shadow: 0 0 0.5vh rgba(0, 255, 255, 0.6);
    animation: progressGlow 3s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    from {
        box-shadow: 0 0 0.5vh rgba(0, 255, 255, 0.6);
    }

    to {
        box-shadow: 0 0 1vh rgba(0, 255, 255, 0.8), 0 0 2vh rgba(0, 255, 255, 0.4);
    }
}

.progress-value {
    color: #00d4ff;
    font-size: 0.9vw;
    min-width: 4vw;
    text-align: right;
    font-weight: bold;
    text-shadow: 0 0 0.3vw #00d4ff;
}

/* 粒子特效样式 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #00ffff 0%, #00d4ff 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s infinite ease-in-out;
}

.particle:nth-child(odd) {
    animation-delay: 0s;
    background: radial-gradient(circle, #4FC3F7 0%, #00d4ff 50%, transparent 100%);
}

.particle:nth-child(even) {
    animation-delay: 1.5s;
    background: radial-gradient(circle, #00ffff 0%, #81C784 50%, transparent 100%);
}

.particle:nth-child(3n) {
    animation-delay: 0.8s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4n) {
    animation-delay: 2.2s;
    width: 4px;
    height: 4px;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100%) translateX(0) scale(0) rotate(0deg);
    }

    25% {
        opacity: 0.8;
        transform: translateY(75%) translateX(10px) scale(1) rotate(90deg);
    }

    50% {
        opacity: 1;
        transform: translateY(50%) translateX(-5px) scale(1.2) rotate(180deg);
    }

    75% {
        opacity: 0.8;
        transform: translateY(25%) translateX(8px) scale(1) rotate(270deg);
    }

    100% {
        opacity: 0;
        transform: translateY(0%) translateX(0) scale(0) rotate(360deg);
    }
}

/* 头部粒子特效样式 */
.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.header-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #00ffff 0%, #4FC3F7 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
}

/* 从左边来的粒子 */
.header-particle.from-left {
    animation: headerParticleMoveLeft 6s infinite linear;
    background: radial-gradient(circle, #00ffff 0%, #4FC3F7 50%, transparent 100%) !important;
}

/* 从右边来的粒子 */
.header-particle.from-right {
    animation: headerParticleMoveRight 6s infinite linear;
    background: radial-gradient(circle, #00d4ff 0%, #81C784 50%, transparent 100%) !important;
}

.header-particle:nth-child(odd) {
    background: radial-gradient(circle, #00d4ff 0%, #81C784 50%, transparent 100%);
    animation-duration: 8s;
}

.header-particle:nth-child(even) {
    background: radial-gradient(circle, #4FC3F7 0%, #00ffff 50%, transparent 100%);
    animation-duration: 7s;
}

.header-particle:nth-child(3n) {
    width: 1px;
    height: 1px;
    animation-duration: 5s;
}

.header-particle:nth-child(4n) {
    width: 3px;
    height: 3px;
    animation-duration: 9s;
}

.header-particle:nth-child(5n) {
    background: radial-gradient(circle, #ffffff 0%, #00d4ff 50%, transparent 100%);
    animation-duration: 6.5s;
}

@keyframes headerParticleMoveLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(0) scale(0);
    }

    20% {
        opacity: 1;
        transform: translateX(-50px) translateY(-5px) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateX(45vw) translateY(-10px) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateX(50vw) translateY(0) scale(0);
    }
}

@keyframes headerParticleMoveRight {
    0% {
        opacity: 0;
        transform: translateX(calc(100vw + 100px)) translateY(0) scale(0);
    }

    20% {
        opacity: 1;
        transform: translateX(calc(100vw - 50px)) translateY(-5px) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateX(55vw) translateY(-10px) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateX(50vw) translateY(0) scale(0);
    }
}

/* 第二个告警列表样式 */
.alert-list2 {
    width: 90%;
    margin: 1vh auto;
    border-top: 1px solid #0a9d9c;
    padding: 0 3vw;
}

.alert-item2 {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 1vh 0.5vw 0;
    transition: all 0.3s ease;
}



.alert-item2:hover {
    transform: translateX(5px);
    background: rgba(0, 212, 255, 0.2) !important;
}

.icon-img {
    margin-right: 1vw;
}

.alert-content2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.alert-title2 {
    color: #ffffff;
    font-size: 0.8vw;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 0.5vh;
}

.alert-time2 {
    color: #00d4ff;
    font-size: 0.8vw;
    opacity: 0.8;
}

/* 第二个告警列表滚动条样式 */
.alert-list2::-webkit-scrollbar {
    width: 4px;
}

.alert-list2::-webkit-scrollbar-track {
    background: rgba(0, 50, 80, 0.3);
    border-radius: 2px;
}

.alert-list2::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.6);
    border-radius: 2px;
}

.alert-list2::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}
.logo{
    position: absolute;
    left: 20px;
}

