/* 安全管理页面样式 */
.safety-page {
    background-color: #f5f5f5;
    height: 100%;
    overflow-y: auto;
}

/* 巡查管理模块 */
.inspection-management {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inspection-management h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.inspection-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.save-button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* 巡查列表模块 */
.inspection-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inspection-list h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.inspection-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.inspection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.inspection-address {
    font-weight: bold;
    color: #333;
}

.inspection-time {
    color: #666;
    font-size: 14px;
}

.inspection-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-pending {
    background: #FFE58F;
    color: #D4B106;
}

.status-completed {
    background: #B7EB8F;
    color: #52C41A;
}

.inspection-actions {
    display: flex;
    gap: 8px;
}

.action-button {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.checkin-button {
    background: #007AFF;
    color: white;
}

.view-button {
    background: #F0F0F0;
    color: #666;
}

/* 巡查提示模块 */
.inspection-alerts {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inspection-alerts h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.alert-overdue {
    background: #FFF1F0;
    border: 1px solid #FFA39E;
}

.alert-upcoming {
    background: #E6F7FF;
    border: 1px solid #91D5FF;
}

.alert-info {
    flex: 1;
}

.alert-address {
    font-weight: bold;
    margin-bottom: 4px;
}

.alert-time {
    font-size: 12px;
    color: #666;
}

.alert-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-overdue {
    background: #FFF1F0;
    color: #F5222D;
}

.status-upcoming {
    background: #E6F7FF;
    color: #1890FF;
}

/* 图片查看弹窗 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.inspection-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.inspection-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}