:root {
    --red: #ca4c4c;
    --bg: #253aac;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans SC", sans-serif;
}

body {
    background: var(--bg);
    padding: 20px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* 顶部信息 */
header {
    background: var(--red);
    padding: 18px 25px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
    /* 居中 */
    box-shadow: 0 4px 12px rgba(182, 182, 182, 0.4);
}

header h1 {
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-size: 3rem;
    color: #ffdb3b;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header span {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.icon-logo {
    width: 80px;
    height: 80px;
    vertical-align: middle;
    margin-right: 15px;
    /* 防止模糊 */
    object-fit: contain;
}

.icon-weather {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    vertical-align: middle;
}

.icon-work {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    vertical-align: middle;
}

.icon-message {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    vertical-align: middle;
}

/* 区块标题 */
h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 12px;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--red);
    letter-spacing: .5px;
}

/* 卡片统一风格 */
.card-Duty {
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.card {
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    color: #e0e0e0;
}

.card p {
    margin: 6px 0;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

th,
td {
    padding: 10px 14px;
    text-align: left;
    font-size: .95rem;
}

thead {
    background: rgba(255, 255, 255, .08);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #ffdb3b;
    box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}

tbody tr {
    background: rgba(255, 255, 255, .08);
    transition: background .2s;
}

/* 状态着色 */
tr.status-inz {
    color: #ffffff;
}

tr.status-other {
    color: #727272;
}

tbody tr:hover {
    background: #ffffff;
    color: #0300c2;
}

/* 今日值班员与饼图左右布局 */
/* 1. 横向平分 */
.onduty-wrapper {
    display: flex;
    gap: 20px;
    /* 两侧间距 */
    align-items: flex-start;
    height: 300px;
}

/*  左30% */
.onduty-right {
    flex: 1 1 30%;
    max-width: 30%;
    height: 100%;
}

/*  中 30% */
.onduty-center {
    flex: 1 1 40%;
    max-width: 40%;
    height: 100%;
}

/* 右 30% */
.onduty-left {
    flex: 1 1 30%;
    max-width: 30%;
    height: 100%;
}



/* ===== 人员结构 ===== */
.personnel-structure {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    /* 等高 */
    gap: 20px;
    padding: 20px 0;
    height: 100%;
}

.personnel-item {
    flex: 1 1 0;
    background: rgba(255, 255, 255, .08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 10px;
    color: #fff;
    transition: transform .2s;
    height: 100%;
}

.personnel-item:hover {
    transform: translateY(-4px);
}

.personnel-item .icon {
    width: 70px;
    /* 图片大小 */
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.personnel-item .label {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.personnel-item .count {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 6px;
}

.count {
    font-size: 3.2rem;
    color: #ffdb3b;
}

.count-center {
    font-size: 1.1rem;
    color: #ffdb3b;
}

.count-left {
    font-size: 1rem;
    color: #ffdb3b;
}

.time-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  padding: 4px 8px;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Noto Sans SC", sans-serif;
    border-radius: 8px;
}