: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: 470px;
    height: 250px;
    cursor: pointer;
}

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


.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 170px;
    height: 135px;
    z-index: 3;
}
.card-content .lines {
    position: absolute;
    top: 45px;
    left: 64px;
    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%);
    white-space: nowrap;
}


.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: 125%;
    min-height: 60px;
    margin-left: -11%;
    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: 170px;
    top: -60px;
    width: 200px;
    height: 160.5px;
    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/zaodu/早调度会03.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: -60px;
    background-image: url('../images/icon/yingji/应急值班03.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: -60px;
    background-image: url('../images/icon/yeban/夜间值班03.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/xianchang/现场值班03.png');
}
.content-grid .card-on-site .card-header {
    left: 0;
}
.content-grid .card-on-site .card-content {
    left: 355px;
}
.card-live-morning .card-header,
.card-live-noon .card-header,
.card-live-night .card-header {
    background-image: url('../images/icon/xianchang/现场值班03.png');
}
.card-zhihu1-morning .card-header,
.card-zhihu1-noon .card-header,
.card-zhihu1-night .card-header {
    background-image: url('../images/icon/zhihu1/支护一班03.png');
}
.card-zhihu2-morning .card-header,
.card-zhihu2-noon .card-header,
.card-zhihu2-night .card-header {
    background-image: url('../images/icon/zhihu2/支护二班03.png');
}
.card-menweibai .card-header {
    background-image: url('../images/icon/menweibai/门卫白班03.png');
}
.card-menweiye .card-header {
    background-image: url('../images/icon/menweiye/门卫夜班03.png');
}
/* .card-on-site .card-image img {
    width: 355px;
}
.card-on-site .card-header {
    top: -13px;
} */
/* 新版14卡片布局 */
.card-scheduling { left:107px; top:60px; }
.card-live-morning { left:107px; top:320px; }
.card-live-noon    { left:107px; top:580px; }
.card-live-night   { left:107px; top:840px; }

.card-zhihu1-morning { left:580px; top:100px; }
.card-zhihu1-noon    { left:580px; top:360px; }
.card-zhihu1-night   { left:580px; top:620px; }

.card-zhihu2-morning { left:1020px; top:100px; }
.card-zhihu2-noon    { left:1020px; top:360px; }
.card-zhihu2-night   { left:1020px; top:620px; }

.card-emergency { left:1480px; top:60px; }
.card-night     { left:1480px; top:320px; }
.card-menweibai { left:1480px; top:580px; }
.card-menweiye  { left:1480px; top:840px; }
/* 右侧列与其他列一致的布局（图片与文字靠左） */
/* 移除特殊偏移，使用默认 .card 规则：header 左 130px，content 左 0 */

/* 图片切换动画（仅对有数据的卡片启用） */
@keyframes switchZaodu {
    0%{ background-image: url('../images/icon/zaodu/早调度会01.png'); }
    100% { background-image: url('../images/icon/zaodu/早调度会02.png'); }
}
@keyframes switchZaouduOpacity {
    0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchYingji {
    0%{ background-image: url('../images/icon/yingji/应急值班01.png'); }
    100% { background-image: url('../images/icon/yingji/应急值班02.png'); }
}
@keyframes switchYingjiOpacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchYeban {
    0%{ background-image: url('../images/icon/yeban/夜间值班01.png'); }
    100% { background-image: url('../images/icon/yeban/夜间值班02.png'); }
}
@keyframes switchYebanOpacity {
    0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchXianchang {
    0%{ background-image: url('../images/icon/xianchang/现场值班01.png'); }
    100% { background-image: url('../images/icon/xianchang/现场值班02.png'); }
}
@keyframes switchXianchangOpacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchZhihu1 {
    0%{ background-image: url('../images/icon/zhihu1/支护一班01.png'); }
    100% { background-image: url('../images/icon/zhihu1/支护一班02.png'); }
}
@keyframes switchZhihu1Opacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchZhihu2 {
    0%{ background-image: url('../images/icon/zhihu2/支护二班01.png'); }
    100% { background-image: url('../images/icon/zhihu2/支护二班02.png'); }
}
@keyframes switchZhihu2Opacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchMenweiBai {
    0%{ background-image: url('../images/icon/menweibai/门卫白班01.png'); }
    100% { background-image: url('../images/icon/menweibai/门卫白班02.png'); }
}
@keyframes switchMenweiBaiOpacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}
@keyframes switchMenweiYe {
    0%{ background-image: url('../images/icon/menweiye/门卫夜班01.png'); }
    100% { background-image: url('../images/icon/menweiye/门卫夜班02.png'); }
}
@keyframes switchMenweiYeOpacity {
     0%{ filter: brightness(1); }
    100% { filter: brightness(1); }
}

/* 头图应用动画，仅在卡片有数据时添加 .has-data */
.card-scheduling.has-data .card-header { animation: switchZaodu 4s infinite alternate, switchZaouduOpacity 4s infinite alternate; }
.card-emergency.has-data .card-header { animation: switchYingji 4s infinite alternate, switchYingjiOpacity 4s infinite alternate; }
.card-night.has-data     .card-header { animation: switchYeban 4s infinite alternate, switchYebanOpacity 4s infinite alternate; }
.card-live-morning.has-data .card-header,
.card-live-noon.has-data .card-header,
.card-live-night.has-data .card-header {
    animation: switchXianchang 4s infinite alternate, switchXianchangOpacity 4s infinite alternate;
}
.card-zhihu1-morning.has-data .card-header,
.card-zhihu1-noon.has-data .card-header,
.card-zhihu1-night.has-data .card-header {
    animation: switchZhihu1 4s infinite alternate, switchZhihu1Opacity 4s infinite alternate;
}
.card-zhihu2-morning.has-data .card-header,
.card-zhihu2-noon.has-data .card-header,
.card-zhihu2-night.has-data .card-header {
    animation: switchZhihu2 4s infinite alternate, switchZhihu2Opacity 4s infinite alternate;
}
.card-menweibai.has-data .card-header {
    animation: switchMenweiBai 4s infinite alternate, switchMenweiBaiOpacity 4s infinite alternate;
}
.card-menweiye.has-data .card-header {
    animation: switchMenweiYe 4s infinite alternate, switchMenweiYeOpacity 4s infinite alternate;
}

/* 调整头图位置与尺寸 */
.card-live-morning .card-header,
.card-live-noon .card-header,
.card-live-night .card-header,
.card-zhihu1-morning .card-header,
.card-zhihu1-noon .card-header,
.card-zhihu1-night .card-header,
.card-zhihu2-morning .card-header,
.card-zhihu2-noon .card-header,
.card-zhihu2-night .card-header,
.card-menweibai .card-header,
.card-menweiye .card-header,
.card-live-all .card-header,
.card-zhihu1-all .card-header,
.card-zhihu2-all .card-header {
    top: -60px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.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: 52%;
    left: 49%;
    transform: translateX(-50%) translateY(-50%);
    width: 300px;
    height: 300px;
}
.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;
}

/* 登录弹窗样式 */
.login-dialog-content {
    background: linear-gradient(180deg, rgba(20, 40, 80, 0.95) 0%, rgba(10, 25, 50, 0.95) 100%);
    border: 2px solid rgba(18, 182, 212, 0.6);
    border-radius: 12px;
    padding: 30px 40px;
    width: 380px;
    box-shadow: 0 0 30px rgba(18, 182, 212, 0.5);
}

.login-dialog-content h2 {
    color: #12b6d4;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: normal;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    color: #7A99B7;
    margin-bottom: 6px;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(18, 182, 212, 0.4);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #12b6d4;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(18, 182, 212, 0.3);
}

.login-form input::placeholder {
    color: rgba(122, 153, 183, 0.6);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    border-radius: 3px;
}

.login-btn {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    background: linear-gradient(180deg, #12b6d4 0%, #0a8ea8 100%);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(180deg, #14c9e8 0%, #0c9fb9 100%);
    box-shadow: 0 0 15px rgba(18, 182, 212, 0.6);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
