/* 瓦斯监控汇总样式 */
.gas-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px;
    height: 100%;
}

.gas-summary li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 35px 8px 30px;
    background: rgba(10, 30, 60, 0.4);
    border: 1px solid rgba(26, 58, 95, 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: space-between;
}

.gas-summary li:hover {
    background: rgba(10, 40, 80, 0.6);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateX(3px);
    z-index: 10001;
}

.gas-summary li .icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
}

.gas-summary li .icon img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.gas-summary li>div:nth-child(2) {
    flex: 1;
}

.gas-summary li span {
    display: block;
    font-size: 15px;
    color: #8b9bad;
    margin-bottom: 4px;
    font-weight: 600;
}

.gas-summary li p {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.gas-summary li p em {
    font-style: normal;
    font-size: 28px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-family: 'electronicFont', Arial, sans-serif;
    transition: all 0.5s ease;
}

.gas-summary li p i {
    font-style: normal;
    font-size: 14px;
    color: #8b9bad;
    font-weight: 600;
}

/* 状态颜色 */
.gas-summary li[data-status="warning"] p em {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    animation: breathe 2s ease-in-out infinite;
}

.gas-summary li[data-status="danger"] p em {
    color: #ff3366;
    text-shadow: 0 0 12px rgba(255, 51, 102, 0.6);
    animation: pulse-red 1.5s ease-in-out infinite;
}

.gas-summary li p em.danger-value {
    color: #ff4d6d;
    text-shadow: 0 0 12px rgba(255, 77, 109, 0.65);
}

/* Tooltip 样式 */
.tooltip-content {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    min-width: 420px;
    background: linear-gradient(135deg, #0a1e3c 0%, #1a3a5f 100%);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 18px;
    box-shadow:
        0 0 20px rgba(0, 228, 255, 0.3),
        0 0 40px rgba(0, 228, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 15px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    visibility: hidden;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #00d4ff;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.tooltip-header {
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-header::before {
    content: '▸';
    color: #00d4ff;
}

.tooltip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip-row:last-child {
    border-bottom: none;
}

.tooltip-row-mine {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.tooltip-row-name {
    min-width: 90px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.tooltip-row-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tooltip-row-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.tooltip-row-bar-fill.warning {
    background: linear-gradient(90deg, #ffaa00 0%, #ff8800 100%);
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.tooltip-row-bar-fill.danger {
    background: linear-gradient(90deg, #ff3366 0%, #cc0033 100%);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.6);
}

.tooltip-row-value {
    min-width: 64px;
    text-align: right;
    font-weight: bold;
    color: #00d4ff;
    font-size: 16px;
}

.tooltip-row-value.warning {
    color: #ffaa00;
}

.tooltip-row-value.danger {
    color: #ff3366;
}

.tooltip-row-percent {
    min-width: 48px;
    text-align: right;
    font-size: 13px;
    color: #8b9bad;
}

.tooltip-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8b9bad;
}

.tooltip-footer-total {
    font-weight: bold;
    color: #00d4ff;
}

.tooltip-footer-time {
    font-size: 12px;
}

/* 空报警提示 */
.tooltip-empty {
    justify-content: center;
    padding: 15px 0;
}

.tooltip-empty-text {
    color: #4ecb73;
    font-size: 15px;
    font-weight: bold;
}


/* 动画效果 */
@keyframes breathe {

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

    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* 数字更新动画 */
@keyframes number-update {
    0% {
        transform: translateY(-5px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.gas-summary li p em.updating {
    animation: number-update 0.5s ease;
}

/* 信息区域样式 */
.gas-info {
    flex: 1;
}

/* 状态和趋势区域 */
.gas-status-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: auto;
    padding-left: 30px;
}

/* 状态徽章 */
.gas-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    background: rgba(78, 203, 115, 0.2);
    color: #4ecb73;
    border: 1px solid rgba(78, 203, 115, 0.4);
}

.gas-status-badge.warning {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

.gas-status-badge.danger {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    border-color: rgba(255, 51, 102, 0.4);
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* 趋势箭头 */
.gas-trend {
    font-size: 12px;
    font-weight: bold;
    color: #8b9bad;
}

.gas-trend.up {
    color: #ff3366;
}

.gas-trend.down {
    color: #4ecb73;
}

.gas-trend.same {
    color: #8b9bad;
}

/* 徽章脉冲动画 */
@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.attention-modal { position:fixed; inset:0; z-index:10000; display:none; align-items:center; justify-content:center; padding:24px; background:rgba(0,12,24,.76); }
.attention-modal.active { display:flex; }
.attention-dialog { width:min(780px,92vw); max-height:78vh; overflow:hidden; border:1px solid rgba(66,205,240,.45); border-radius:8px; background:#072b42; box-shadow:0 18px 60px rgba(0,0,0,.48); }
.attention-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; padding:18px 20px; border-bottom:1px solid rgba(87,180,211,.25); }
.attention-dialog-head h3 { margin:0 0 6px; color:#eafaff; font-size:18px; }
.attention-dialog-head p { margin:0; color:#7fa9bd; font-size:12px; }
.attention-dialog-head button { border:0; color:#b9dce9; background:transparent; font-size:26px; cursor:pointer; }
.attention-dialog-list { max-height:60vh; overflow:auto; padding:10px 18px 18px; }
.attention-dialog-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 4px; border-bottom:1px solid rgba(87,180,211,.18); }
.attention-dialog-info { display:flex; min-width:0; flex-direction:column; gap:7px; }
.attention-dialog-info strong { overflow:hidden; color:#edfaff; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.attention-dialog-info span { color:#f2aa62; font-size:12px; }
.attention-dialog-row button { flex:none; padding:8px 13px; border:1px solid #22b4db; border-radius:4px; color:#fff; background:#137fa5; cursor:pointer; }
.attention-dialog-row button:disabled { opacity:.6; cursor:wait; }
