:root {
    --primary-color: #222222;
    --secondary-color: #ffffff;
    --accent-color: #12b6d4;
    --text-color: #ffffff;
    --card-bg: rgba(10, 36, 99, 0.6);
    --border-glow: 0 0 15px rgba(18, 182, 212, 0.8);
    --base-font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: var(--base-font-size);
}
body {
    margin: 0;
    padding: 0;
    color: var(--text-color);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', sans-serif;
    transform-origin: top left;
    overflow: hidden;
    position: relative;
    background-color: #000000;
}
/* .is-hidden {
    display: none;
} */
.is-disabled,.is-hidden {
    pointer-events: none;
    opacity: 0.5; /* 降低透明度 */
    filter: grayscale(100%); /* 转为灰度 */
    color: #999; /* 文本颜色设为灰色 */
    cursor: not-allowed;
}
.dashboard-container {
    min-width: 1920px;
    min-height: 1080px;
    width: 100%;
    margin: 0 auto;
    background-image: url('../images/bg_main.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    position: relative;

}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 85px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 35px;
    margin:13px 20px 0;
}

.company-name {
    font-size: 1.2vw;
    font-weight: bold;
}

.main-title {
    color: var(--accent-color);
    text-align: center;
    flex-grow: 1;
}
.main-title span {
    display: none;
}
.header-right {
    padding: 14px 24px;
}

.datetime {
    display: inline-block;
    font-size: 24px;
    color:#7A99B7;
    vertical-align: middle;
}

.weather {
    display: inline-block;
    color:#7A99B7;
    font-size: 24px;
    vertical-align: middle;
}
.weather-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.content-grid {
    position: relative;
    height: 100%;
    width: 100%;
}

.card {
    position: absolute;
    width: 500px;
    height: 325px;
    cursor: pointer;
}

.card-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}


.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 135px;
    z-index: 3;
}
.card-content .lines {
    position: absolute;
    top: 45px;
    left: 44px;
    width: 44px;
    height: 17px;
    border: 1px solid #979797;
    border-width: 0 2px;
}
.card-title {
    font-size: 24px;
    font-weight: normal;
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: #202020;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 1);
    background: linear-gradient(180deg, rgba(229, 234, 238, 1) 0%, rgba(144, 178, 204, 1) 100%);
}


.personnel-info {
    font-size: 16px;
    margin-top: 17px;
    padding: 10px;
    color: #fff;
    border: 1px solid #979797;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

.personnel-info .person+.person {
    margin-top: 9px;
}
.personnel-info.multi-person {
    width: 142%;
    margin-left: -21%;
    font-size: 16px;
}
.personnel-info.multi-person .person {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 可选，垂直居中对齐 */
}
.personnel-info .name {
}

.personnel-info .contact {
    font-family: Monaco,'Courier New', Courier, monospace;
	padding-left:3px;
}

.card .ico_bg {
    position: absolute;
    z-index: 1;
    right: -75px;
    bottom: 38px;
    width: 482px;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}
.card:hover .ico_bg {
    /* visibility: visible; */
    opacity: 1;
    transform: scale(1);
}
.card  .card-header {
    left: 130px;
    top: -60px;
    width: 355px;
    height: 355px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: transform 0.3s ease; /* 添加平滑过渡 */
    transform-origin: center center; /* 设置变换原点为中心 */
}
.card  .card-header:hover {
    transform: scale(1.2); /* 鼠标悬停时放大20% */
}
.card  .card-image {
    display: none;
}

/* 卡片背景图 */
.card-scheduling {
    left:107px;
    top:32px;
}
.card-scheduling  .card-header {
    top: -60px;
    background-image: url('../images/icon/ico_2.png');
    animation: switchBackground1 1s infinite alternate;
}
@keyframes switchBackground1 {
    0% {
        background-image: url('../images/icon/ico_2.png');
    }
    100% {
        background-image: url('../images/icon/ico_2_a.png');
    }
}
/* .card-scheduling .card-image img {
    width: 355px;
}
.card-scheduling .ico_bg {
    right: -70px;
    bottom: -3px;
} */
.card-emergency {
    left:107px;
    top: 345px;
}
.card-emergency  .card-header {
    top: -90px;
    background-image: url('../images/icon/ico_3.png');
    background-size: 120% 120%;
    background-position: -40px -40px;
    animation: switchBackground2 1s infinite alternate;
}
@keyframes switchBackground2 {
    0% {
        background-image: url('../images/icon/ico_3.png');
    }
    100% {
        background-image: url('../images/icon/ico_3_a.png');
    }
}
/* .card-emergency .card-header {
    top: -40px;
    right: 32px;
}
.card-emergency .card-image img {
    width: 355px;
}
.card-emergency .ico_bg {
    right: -70px;
    bottom: -3px;
} */
.card-night{
    left:107px;
    top: 687px;
}
.card-night  .card-header {
    top: -90px;
    background-image: url('../images/icon/ico_4.png');
    animation: switchBackground3 1s infinite alternate;
}
@keyframes switchBackground3 {
    0% {
        background-image: url('../images/icon/ico_4.png');
    }
    100% {
        background-image: url('../images/icon/ico_4_a.png');    
    }
}
/* .card-night .card-image img {
    width: 355px;
}
.card-night .card-header {
    top: -25px;
} */
.content-grid .card-manager {
    width: 335px;
    top: 320px;
    left: 770px;
}
.content-grid .card-manager .card-content {
    top:-150px;
    left:50%;
    transform: translateX(-50%);
}
.card-manager  .card-header {
    top: -90px;
    background-image: url('../images/icon/ico_1.png');
    animation: switchBackground4 1s infinite alternate;
}
.content-grid .card-manager  .card-header {
    left:0;
}

.weather {
    color: #7A99B7;
    font-size: 24px;
    vertical-align: middle;
    display: inline-block;
}

.weather-container {
    display: flex;
    align-items: center;
}

.weather-icon {
    margin-right: 10px;
}

.weather-icon img {
    width: 50px;
    height: 50px;
}

.weather-info {
    display: flex;
    flex-direction: row;
    gap: 8px;

}

.weather-city {
}

.weather-temp {

}

.weather-desc {
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.weather-update {
    font-size: 12px;
    color: #999;
}

.weather-error {
    padding: 10px;
    color: #ff6b6b;
    text-align: center;
}

@keyframes switchBackground4 {
    0% {
        background-image: url('../images/icon/ico_1.png');
    }
    100% {
        background-image: url('../images/icon/ico_1_a.png');
    }
}
/* .card-manager .card-image img {
    width: 355px;
}
.card-manager .card-header {
    top: -12px;
} */
.card-on-site{
    width: 481px;
    left: 1283px;
    top: 60px;
}
.card-on-site  .card-header {
    top: -60px;
    background-image: url('../images/icon/ico_5.png');
    animation: switchBackground5 1s infinite alternate;
}
.content-grid .card-on-site .card-header {
    left: 0;
}
.content-grid .card-on-site .card-content {
    left: 355px;
}
@keyframes switchBackground5 {
    0% {
        background-image: url('../images/icon/ico_5.png');
    }
    100% {
        background-image: url('../images/icon/ico_5_a.png');
    }
}
/* .card-on-site .card-image img {
    width: 355px;
}
.card-on-site .card-header {
    top: -13px;
} */
.card-fitters-1 {
    width: 506px;
    left: 1283px;
    top: 384px;
}
.card-fitters-1  .card-header {
    background-image: url('../images/icon/ico_6.png');
    animation: switchBackground6 1s infinite alternate;
}
.content-grid .card-fitters-1  .card-header {
    left: 0;
}
.content-grid .card-fitters-1 .card-content {
    left: 355px;
}
@keyframes switchBackground6 {
    0% {
        background-image: url('../images/icon/ico_6.png');
    }
    100% {
        background-image: url('../images/icon/ico_6_a.png');
    }
}
/* .card-fitters-1 .card-image img {
    width: 355px;
}
.card-fitters-1 .card-header {
    top: -13px;
} */
.card-fitters-2{
    width: 505px;
    left: 1283px;
    top: 687px;
}
.card-fitters-2  .card-header {
    background-image: url('../images/icon/ico_7.png');
    animation: switchBackground7 1s infinite alternate;
}
.content-grid .card-fitters-2  .card-header {
    left: 0;
}
.content-grid .card-fitters-2 .card-content {
    left: 355px;
}
@keyframes switchBackground7 {
    0% {
        background-image: url('../images/icon/ico_7.png');
    }
    100% {
        background-image: url('../images/icon/ico_7_a.png');
    }
}
/* .card-fitters-2 .card-image img {
    width: 355px;
}
.card-fitters-2 .card-header {
    top: -13px;
} */

.card-calendar {
    width: 158px;
    left: 882px;
    top: 843px;
}
.card-calendar img {
    width: 100%;
}

.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    /* background-color: rgba(0, 0, 0, 0.8); */
}
.dialog {
    position: fixed;
    left: 32px;
    top: 85px;
    width: 1856px;
    height: 934px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    z-index: 100;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #333;
  padding: 5px;
  cursor: pointer;
  z-index: 100;
}

.dialog-close:hover {
  color: #666;
}
.close-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('../images/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.dialog-close .close-icon {
  transition: transform 0.2s ease;
}

.dialog-close:hover .close-icon {
  transform: rotate(90deg);
}

.dialog-calendar {
    padding: 20px 200px;
}
.dialog-calendar .dialog-header {
    font-size: 26px;
    text-align: center;
    padding: 10px 0;
}
.schedule-table {
  width: 100%;
  border-collapse: separate; /* 修改为separate */
  border-spacing: 0;
  border-radius: 10px; /* 添加圆角 */
  overflow: hidden; /* 确保内容不溢出圆角 */
  border: 1px solid #235178;
  table-layout: fixed;
}
.schedule-table th,
.schedule-table td {
    border: 1px solid #235178;
    padding: 8px 0;
    text-align: center;
    vertical-align: top;
    background-color: #212a37;
}
.schedule-table th {
    font-size: 22px;
}
.schedule-table .weekend {
    background-color: #1a3040;
}
.schedule-table .date-row .date-number {
    padding: 8px 10px;
    min-height: 22px;
    color: #646a73;
    border-bottom:1px solid #235178;
}
.schedule-table .date-row .duty-info {
    text-align: left;
    font-size: 15px;
    padding: 10px 8px;
    max-height: 65px; /* 设置最大高度，超过则隐藏 */
    overflow: hidden; /* 隐藏溢出内容 */
    position: relative; /* 为伪元素提供定位上下文 */
    transition: max-height 0.3s ease; /* 添加过渡效果 */
    cursor: pointer;
}
/* 鼠标悬停时展开全部内容 */
.schedule-table .date-row:hover .duty-info {
    max-height: 200px; /* 设置一个足够大的值以显示全部内容 */
}

.schedule-table i {
    font-style: normal;
}
.schedule-table .c1 {
    color: #ff3457;
}
.schedule-table .c2 {
    color: #e37725;
}
.schedule-table .c3 {
    color: #3c97f2;
}
.dialog-footer {
    padding: 10px 0;
}
.dialog-footer em {
    font-style: normal;
    color: #FEE900;
}

/* 分辨率指示器 */
.resolution-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 15px;
    font-size: 32px;
    z-index: 100;
}
.bg-canvas{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}
/* 响应式调整 */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .resolution-indicator::after {
        content: "当前分辨率: 1080P模式";
        color: #00c6ff;
    }
}
@media screen and (min-width: 2560px) and (max-width: 3839px) {
    .resolution-indicator::after {
        content: "当前分辨率: 2K模式";
        color: #1a5cff;
    }
    body {
        background-image: url('../images/bg_main@x2.png');
    }
}
@media screen and (min-width: 3840px) {
    body {
        background-image: url('../images/bg_main@x2.png');
    }
    .resolution-indicator::after {
        content: "当前分辨率: 4K模式";
        color: #5e7cff;
    }
}

.dialog-zhiban .dialog-bg {
    position: relative;
    width: 1718px;
    height: 718px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: -webkit-image-set(
        url(../images/bg_dialog.png) 1x,
        url(../images/bg_dialog@2x.png) 2x
    );
    background: image-set(
        url(../images/bg_dialog.png) 1x,
        url(../images/bg_dialog@2x.png) 2x
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.dialog-zhiban .left-part {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 350px;
    height: 350px;
}
.dialog-zhiban .right-part {
    position: relative;
    width: 1718px;
    height: 718px;
}
.dialog-zhiban .card {
    left: 0;
    top: 0;
    width: 350px;
    height:350px;
    pointer-events: none;
}
.dialog-zhiban .card-content {
    top:-200px;
    left: 50%;
    transform: translateX(-50%);
}
.dialog-zhiban .card .card-header {
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
    width: 320px;
    height:320px;
}
.dialog-zhiban .dialog-content {
    position: relative;
    background-color: rgba(37, 46, 59, 0.9);
    top: 10px;
    left: 10px;
}
.dialog-zhiban .dialog-header {
    display: none;
}
.dialog-zhiban .content_list{
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 576px;
    height: 100px;
    padding: 25px 30px 0;
    font-size: 18px;
    color: #fff;
}
/* 内容垂直居中， <div class="content_list"><div class="text">内容</div></div>*/
.dialog-zhiban .content_list .text {
    width: 576px;
    height: 100px;
    padding: 0 30px;
    display: table-cell;
    vertical-align: middle;
}
.dialog-zhiban .content_list:nth-child(1) {
    top: 0;
}
.dialog-zhiban .content_list:nth-child(2) {
    top: 150px;
}
.dialog-zhiban .content_list:nth-child(3) {
    top: 300px;
}
.dialog-zhiban .content_list:nth-child(4) {
    top: 450px;
}
.dialog-zhiban .content_list:nth-child(5) {
    top: 600px;
}
.dialog-zhiban .content_list:nth-child(6) {
    left: 1124px;
    top: 0;
}
.dialog-zhiban .content_list:nth-child(7) {
    left: 1124px;
    top: 150px;
}
.dialog-zhiban .content_list:nth-child(8) {
    left: 1124px;
    top: 300px;
}
.dialog-zhiban .content_list:nth-child(9) {
    left: 1124px;
    top: 450px;
}
.dialog-zhiban .content_list:nth-child(10) {
    left: 1124px;
    top: 600px;
}